Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde0b19c

Browse files
authored
Merge pull request#45 from coderoad/fix/no-setup
build without yaml step setup
2 parentsef2932d +81b7356 commitde0b19c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/schema/skeleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default {
171171
],
172172
},
173173
},
174-
required:["id","setup"],
174+
required:["id"],
175175
},
176176
},
177177
},

‎tests/skeleton.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe("validate skeleton", () => {
217217
constvalid=validateSkeleton(json);
218218
expect(valid).toBe(false);
219219
});
220-
it("should fail if step setup is missing",()=>{
220+
it("shouldnotfail if step setup is missing",()=>{
221221
conststep1={ ...validJson.levels[0].steps[0],setup:undefined};
222222
constlevel1={ ...validJson.levels[0],steps:[step1]};
223223
constjson={
@@ -226,7 +226,7 @@ describe("validate skeleton", () => {
226226
};
227227

228228
constvalid=validateSkeleton(json);
229-
expect(valid).toBe(false);
229+
expect(valid).toBe(true);
230230
});
231231
it("should fail if step setup is invalid",()=>{
232232
conststep1={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp