Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Sep 16, 2019
1 parent 2706bcb commit 2360c88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/modules/Bundler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ describe('Bundler', function() {
let builds = bundler.process();
expect(builds.length).toEqual(4);

expect(typeof builds[0].external()).toEqual('boolean');
expect(builds).toBeInstanceOf(Array);

const bundler2 = new Bundler(null, [], {
Expand All @@ -70,7 +69,9 @@ describe('Bundler', function() {

it(`should include return array of module build objects for the enabled builds`, function() {
const builds = bundler.process();
expect(typeof builds[0].external()).toEqual('boolean');
if (!Array.isArray(builds[0].external)) {
expect(typeof builds[0].external('', '', false)).toEqual('boolean');
}
expect(builds).toBeInstanceOf(Array);
});

Expand Down

0 comments on commit 2360c88

Please sign in to comment.