mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
Harden tests (...a bit)
This commit is contained in:
@@ -6,11 +6,10 @@ describe('export', function() {
|
||||
this.timeout(10000);
|
||||
|
||||
// hooks
|
||||
before(async () => {
|
||||
await api.build({ cwd: __dirname });
|
||||
await api.export({ cwd: __dirname });
|
||||
});
|
||||
before('build app', () => api.build({ cwd: __dirname }));
|
||||
before('export app', () => api.export({ cwd: __dirname }));
|
||||
|
||||
// tests
|
||||
it('crawls a site', () => {
|
||||
const files = walk(`${__dirname}/__sapper__/export`);
|
||||
|
||||
@@ -45,4 +44,4 @@ describe('export', function() {
|
||||
});
|
||||
|
||||
// TODO test timeout, basepath
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user