Skip to content

Commit

Permalink
test(load_config): process external_link
Browse files Browse the repository at this point in the history
Default config should apply when undefined
  • Loading branch information
SukkaW committed Jul 13, 2020
1 parent 2e5d944 commit e22a327
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/scripts/hexo/load_config.js
Expand Up @@ -127,6 +127,16 @@ describe('Load config', () => {
field: 'site',
exclude: []
});

// Test undefined
await writeFile(hexo.config_path, '');

await loadConfig(hexo);
hexo.config.external_link.should.eql({
enable: false,
field: 'site',
exclude: []
});
} finally {
await unlink(hexo.config_path);
}
Expand Down

0 comments on commit e22a327

Please sign in to comment.