@@ -35,9 +35,9 @@ test('get configuration file equals .sgcrc_default', (t) => {
3535 t . deepEqual ( getConfig ( ) , json . readToObjSync ( path . join ( cwd , '.sgcrc_default' ) ) ) ;
3636} ) ;
3737
38- test ( 'choices are the same as choices generated from .sgcrc_default' , async ( t ) => {
39- const sgc = await getConfig ( ) ;
40- const choicesList = await choices ( sgc ) ;
38+ test ( 'choices are the same as choices generated from .sgcrc_default' , ( t ) => {
39+ const sgc = getConfig ( ) ;
40+ const choicesList = choices ( sgc ) ;
4141 const choicesArray = [ ] ;
4242
4343 sgc . types . forEach ( ( type ) => {
@@ -51,21 +51,21 @@ test('choices are the same as choices generated from .sgcrc_default', async (t)
5151 } ) ;
5252 } ) ;
5353
54- t . deepEqual ( choicesList , await choicesArray ) ;
54+ t . deepEqual ( choicesList , choicesArray ) ;
5555} ) ;
5656
57- test ( 'check the values of the question object' , async ( t ) => {
58- const configuration = await getConfig ( ) ;
59- const choicesList = await choices ( configuration ) ;
60- const questionsList = await questions ( choicesList , configuration ) ;
57+ test ( 'check the values of the question object' , ( t ) => {
58+ const configuration = getConfig ( ) ;
59+ const choicesList = choices ( configuration ) ;
60+ const questionsList = questions ( choicesList , configuration ) ;
6161
6262 t . deepEqual ( typeof questionsList , 'object' ) ;
6363} ) ;
6464
65- test ( 'validate functions in questions' , async ( t ) => {
66- const configuration = await getConfig ( ) ;
67- const choicesList = await choices ( configuration ) ;
68- const questionsList = await questions ( choicesList , configuration ) ;
65+ test ( 'validate functions in questions' , ( t ) => {
66+ const configuration = getConfig ( ) ;
67+ const choicesList = choices ( configuration ) ;
68+ const questionsList = questions ( choicesList , configuration ) ;
6969
7070 t . deepEqual ( questionsList [ 1 ] . validate ( 'input text' ) , true ) ;
7171 t . deepEqual ( questionsList [ 1 ] . validate ( 'This message has over 72 characters. So this test will definitely fail. I can guarantee that I am telling the truth' ) , 'The commit message is not allowed to be longer as 72. Consider writing a body.\n' ) ;
0 commit comments