Test to check success of testdata script
parent
41cb4e24c5
commit
cd0b4e992f
|
@ -0,0 +1,14 @@
|
||||||
|
import{ serial as test }from'ava';
|
||||||
|
|
||||||
|
test('[Success] Run test data', async t => {
|
||||||
|
const spawnSync = require('child_process').spawnSync;
|
||||||
|
let exitCode;
|
||||||
|
try{
|
||||||
|
exitCode = spawnSync('npm', ['run', 'testdata'], {
|
||||||
|
shell: true
|
||||||
|
});
|
||||||
|
}catch(error){
|
||||||
|
console.log('Error', error);
|
||||||
|
}
|
||||||
|
t.deepEqual(exitCode.status, 0);
|
||||||
|
});
|
Loading…
Reference in New Issue