-
-
Notifications
You must be signed in to change notification settings - Fork 750
Expand file tree
/
Copy pathlist_test.js
More file actions
23 lines (21 loc) · 775 Bytes
/
list_test.js
File metadata and controls
23 lines (21 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import * as chai from 'chai';
chai.should();
import assert from 'assert';
import path from 'path';
import { exec } from 'child_process';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const runner = path.join(__dirname, '/../../bin/codecept.js')
const codecept_dir = path.join(__dirname, '/../data/sandbox')
describe('list commands', () => {
it('list should print actions', done => {
exec(`${runner} list ${codecept_dir}`, (err, stdout) => {
stdout.should.include('FileSystem') // helper name
stdout.should.include('FileSystem I.amInPath(openPath)') // action name
stdout.should.include('FileSystem I.seeFile(name)')
assert(!err)
done()
})
})
})