mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-22 07:05:24 +00:00
update test
This commit is contained in:
@@ -79,7 +79,7 @@ function run(env) {
|
|||||||
|
|
||||||
if (env === 'production') {
|
if (env === 'production') {
|
||||||
const cli = path.resolve(__dirname, '../../cli/index.js');
|
const cli = path.resolve(__dirname, '../../cli/index.js');
|
||||||
exec_promise = exec(`${cli} build`).then(() => exec(`${cli} extract`));
|
exec_promise = exec(`${cli} build`).then(() => exec(`${cli} export`));
|
||||||
}
|
}
|
||||||
|
|
||||||
return exec_promise.then(() => {
|
return exec_promise.then(() => {
|
||||||
@@ -327,8 +327,8 @@ function run(env) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (env === 'production') {
|
if (env === 'production') {
|
||||||
describe('extract', () => {
|
describe('export', () => {
|
||||||
it('extract all pages', () => {
|
it('export all pages', () => {
|
||||||
const dest = path.resolve(__dirname, '../app/dist');
|
const dest = path.resolve(__dirname, '../app/dist');
|
||||||
|
|
||||||
// Pages that should show up in the extraction directory.
|
// Pages that should show up in the extraction directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user