Skip to content

Commit 1cc33f9

Browse files
committedJan 17, 2025··
test: update failing test
1 parent e98ebe5 commit 1cc33f9

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test:dev": "npm run clean && jest --config test/jest-config.json --watchAll",
2727
"prerelease": "npm run build",
2828
"release": "release-it",
29-
"prepare": "husky install"
29+
"prepare": "husky"
3030
},
3131
"repository": {
3232
"type": "git",

‎test/lib/questions/questions.spec.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ describe('Questions', () => {
2424
describe('generateSelect', () => {
2525
it('should return a select question', () => {
2626
const choices: string[] = ['choiceA', 'choiceB', 'choiceC'];
27-
const question: Question = generateSelect('name')('message')(choices);
27+
const question = generateSelect('name')('message')(choices);
2828
expect(question).toEqual({
2929
message: 'message',
3030
name: 'name',
3131
choices: [
32-
{
33-
name: "choiceA",
34-
value: "choiceA",
35-
},
36-
{
37-
name: "choiceB",
38-
value: "choiceB",
39-
},
40-
{
41-
name: "choiceC",
42-
value: "choiceC",
43-
}
44-
]
32+
{
33+
name: 'choiceA',
34+
value: 'choiceA',
35+
},
36+
{
37+
name: 'choiceB',
38+
value: 'choiceB',
39+
},
40+
{
41+
name: 'choiceC',
42+
value: 'choiceC',
43+
},
44+
],
4545
});
4646
});
4747
});

0 commit comments

Comments
 (0)
Please sign in to comment.