Skip to content

Commit

Permalink
Fix some unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Apr 8, 2020
1 parent 1209b3d commit 9fd08d1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/test/testing/unittest/unittest.discovery.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ suite('Unit Tests - Unittest - Discovery', () => {
.setup((r) => r.run(typeMoq.It.isValue(UNITTEST_PROVIDER), typeMoq.It.isAny()))
.callback((_, opts: Options) => {
expect(opts.args).to.include('-c');
expect(opts.args[1]).to.contain(dir);
expect(opts.args[1]).to.not.contain('loader.discover("."');
expect(opts.args[2]).to.contain(dir);
expect(opts.args[2]).to.not.contain('loader.discover("."');
})
.returns(() => Promise.resolve(runOutput))
.verifiable(typeMoq.Times.once());
Expand Down Expand Up @@ -117,8 +117,8 @@ suite('Unit Tests - Unittest - Discovery', () => {
.setup((r) => r.run(typeMoq.It.isValue(UNITTEST_PROVIDER), typeMoq.It.isAny()))
.callback((_, opts: Options) => {
expect(opts.args).to.include('-c');
expect(opts.args[1]).to.contain(dir);
expect(opts.args[1]).to.not.contain('loader.discover("."');
expect(opts.args[2]).to.contain(dir);
expect(opts.args[2]).to.not.contain('loader.discover("."');
})
.returns(() => Promise.resolve(runOutput))
.verifiable(typeMoq.Times.once());
Expand Down Expand Up @@ -163,8 +163,8 @@ suite('Unit Tests - Unittest - Discovery', () => {
.setup((r) => r.run(typeMoq.It.isValue(UNITTEST_PROVIDER), typeMoq.It.isAny()))
.callback((_, opts: Options) => {
expect(opts.args).to.include('-c');
expect(opts.args[1]).to.not.contain(dir);
expect(opts.args[1]).to.contain('loader.discover("."');
expect(opts.args[2]).to.not.contain(dir);
expect(opts.args[2]).to.contain('loader.discover("."');
})
.returns(() => Promise.resolve(runOutput))
.verifiable(typeMoq.Times.once());
Expand Down Expand Up @@ -205,8 +205,8 @@ suite('Unit Tests - Unittest - Discovery', () => {
.setup((r) => r.run(typeMoq.It.isValue(UNITTEST_PROVIDER), typeMoq.It.isAny()))
.callback((_, opts: Options) => {
expect(opts.args).to.include('-c');
expect(opts.args[1]).to.contain(pattern);
expect(opts.args[1]).to.not.contain('test*.py');
expect(opts.args[2]).to.contain(pattern);
expect(opts.args[2]).to.not.contain('test*.py');
})
.returns(() => Promise.resolve(runOutput))
.verifiable(typeMoq.Times.once());
Expand Down Expand Up @@ -251,8 +251,8 @@ suite('Unit Tests - Unittest - Discovery', () => {
.setup((r) => r.run(typeMoq.It.isValue(UNITTEST_PROVIDER), typeMoq.It.isAny()))
.callback((_, opts: Options) => {
expect(opts.args).to.include('-c');
expect(opts.args[1]).to.contain(pattern);
expect(opts.args[1]).to.not.contain('test*.py');
expect(opts.args[2]).to.contain(pattern);
expect(opts.args[2]).to.not.contain('test*.py');
})
.returns(() => Promise.resolve(runOutput))
.verifiable(typeMoq.Times.once());
Expand Down Expand Up @@ -297,8 +297,8 @@ suite('Unit Tests - Unittest - Discovery', () => {
.setup((r) => r.run(typeMoq.It.isValue(UNITTEST_PROVIDER), typeMoq.It.isAny()))
.callback((_, opts: Options) => {
expect(opts.args).to.include('-c');
expect(opts.args[1]).to.not.contain(pattern);
expect(opts.args[1]).to.contain('test*.py');
expect(opts.args[2]).to.not.contain(pattern);
expect(opts.args[2]).to.contain('test*.py');
})
.returns(() => Promise.resolve(runOutput))
.verifiable(typeMoq.Times.once());
Expand Down

0 comments on commit 9fd08d1

Please sign in to comment.