Skip to content

Commit f5d1a20

Browse files
committed
add proper verification
1 parent c77f35d commit f5d1a20

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/runner/init_test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ describe('Init Command', function () {
6868

6969
fs.existsSync(path.join(codecept_dir, 'codecept.conf.js')).should.be.true
7070
fs.existsSync(path.join(codecept_dir, 'steps_file.js')).should.be.true
71+
72+
fs.readFile(path.join(codecept_dir, 'codecept.conf.js'), 'utf8', (err, data) => {
73+
if (err) {
74+
throw Error(err);
75+
return;
76+
}
77+
data.should.contain('./steps_file.js');
78+
});
7179
})
7280

7381
it('should initialize a TS project', async () => {
@@ -87,5 +95,13 @@ describe('Init Command', function () {
8795

8896
fs.existsSync(path.join(codecept_dir, 'codecept.conf.ts')).should.be.true
8997
fs.existsSync(path.join(codecept_dir, 'steps_file.ts')).should.be.true
98+
99+
fs.readFile(path.join(codecept_dir, 'codecept.conf.ts'), 'utf8', (err, data) => {
100+
if (err) {
101+
throw Error(err);
102+
return;
103+
}
104+
data.should.contain('./steps_file.ts');
105+
});
90106
})
91107
})

0 commit comments

Comments
 (0)