Skip to content

Commit

Permalink
test: more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 21, 2021
1 parent 745593f commit 3318ac7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/cli/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,15 @@ describe('CLI', () => {
.catch(done);
});

it(' --open --open-target index.html', (done) => {
testBin('--open --open-target index.html')
.then((output) => {
expect(output.exitCode).toEqual(0);
done();
})
.catch(done);
});

it('--open-target /first.html second.html', (done) => {
testBin('--open-target /first.html second.html')
.then((output) => {
Expand All @@ -522,6 +531,15 @@ describe('CLI', () => {
.catch(done);
});

it('--open --open-target /index.html --open-app google-chrome', (done) => {
testBin('--open --open-target /index.html --open-app google-chrome')
.then((output) => {
expect(output.exitCode).toEqual(0);
done();
})
.catch(done);
});

it('--client-overlay', (done) => {
testBin('--client-overlay')
.then((output) => {
Expand Down Expand Up @@ -613,6 +631,20 @@ describe('CLI', () => {
.catch(done);
});

it('--static --static-directory', (done) => {
testBin(
`--static --static-directory ${path.resolve(
__dirname,
'../fixtures/static/webpack.config.js'
)}`
)
.then((output) => {
expect(output.exitCode).toEqual(0);
done();
})
.catch(done);
});

it('--static-serve-index', (done) => {
testBin('--static-serve-index')
.then((output) => {
Expand Down

0 comments on commit 3318ac7

Please sign in to comment.