@oscarmoralex/push-cli
Version:
This application will help you to do : git add . & git commit & git push with a single instruction
14 lines (12 loc) • 365 B
JavaScript
import test from 'ava';
import {execa} from 'execa';
test('Get Status with command', async t => {
const {stdout} = await execa('p', [`status`]);
let hasStatu = stdout ? true : false;
t.is(hasStatu, true);
});
test('Get Status with flag', async t => {
const {stdout} = await execa('p', [`-s`]);
let hasStatu = stdout ? true : false;
t.is(hasStatu, true);
});