Skip to content

Commit 87b4cbd

Browse files
committed
bugfix: fix public folder test
1 parent 8b6fdc9 commit 87b4cbd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/e2e/e2e_workflow.spec.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,8 @@ describe('Basic end-to-end Workflow', function () {
312312
const tmpFileLocation = path.join(process.cwd(), 'dist', 'test.abc');
313313
fs.writeFileSync(tmpFile, 'hello world');
314314

315-
return ng(['build'])
316-
.then(function () {
317-
expect(existsSync(tmpFileLocation)).to.be.equal(true);
318-
})
319-
.catch(err => {
320-
throw new Error(err)
321-
});
315+
sh.exec(`${ngBin} build`);
316+
expect(existsSync(tmpFileLocation)).to.be.equal(true);
322317
});
323318

324319
it.skip('Installs sass support successfully', function() {

0 commit comments

Comments
 (0)