Skip to content

Commit

Permalink
test(@ngtools/webpack): remove bundle size tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Mar 21, 2017
1 parent 4a17904 commit bc862b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/e2e/tests/packages/webpack/server.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import {normalize} from 'path';
import {createProjectFromAsset} from '../../../utils/assets';
import {exec} from '../../../utils/process';
import {expectFileSizeToBeUnder, expectFileToMatch} from '../../../utils/fs';
import {expectFileToMatch} from '../../../utils/fs';


export default function(skipCleaning: () => void) {
return Promise.resolve()
.then(() => createProjectFromAsset('webpack/test-server-app'))
.then(() => exec(normalize('node_modules/.bin/webpack'), '-p'))
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 420000))
.then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 10000))
.then(() => expectFileToMatch('dist/app.main.js',
new RegExp('.bootstrapModuleFactory'))
.then(() => expectFileToMatch('dist/app.main.js',
Expand Down

0 comments on commit bc862b5

Please sign in to comment.