Skip to content

Commit

Permalink
test: comment out missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 16, 2019
1 parent f37557a commit 1bb233a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/scripts/console/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('deploy', () => {
});
});

it('deployer not found');
// it('deployer not found');

it('generate', () => fs.writeFile(pathFn.join(hexo.source_dir, 'test.txt'), 'test').then(() => deploy({generate: true})).then(() => fs.readFile(pathFn.join(hexo.public_dir, 'test.txt'))).then(content => {
content.should.eql('test');
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/console/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ describe('render', () => {
});
});

// it('output');

it('engine', () => {
const src = pathFn.join(hexo.base_dir, 'test');
const dest = pathFn.join(hexo.base_dir, 'result.json');
Expand Down
4 changes: 2 additions & 2 deletions test/scripts/hexo/hexo.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('Hexo', () => {
});
});

it('model()');
// it('model()');

it('_showDrafts()', () => {
hexo._showDrafts().should.be.false;
Expand Down Expand Up @@ -188,7 +188,7 @@ describe('Hexo', () => {

it('watch() - theme', () => testWatch(pathFn.join(hexo.theme_dir, 'source')));

it('unwatch()');
// it('unwatch()');

it('exit()', () => {
const hook = sinon.spy();
Expand Down
12 changes: 6 additions & 6 deletions test/scripts/hexo/load_database.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ describe('Load database', () => {

// I don't know why this test case can't pass on Windows
// It always throws EPERM error
it.skip('database load failed', () => fs.writeFile(dbPath, '{1423432: 324').then(() => loadDatabase(hexo)).then(() => {
hexo._dbLoaded.should.be.false;
return fs.exists(dbPath);
}).then(exist => {
exist.should.be.false;
}));
// it('database load failed', () => fs.writeFile(dbPath, '{1423432: 324').then(() => loadDatabase(hexo)).then(() => {
// hexo._dbLoaded.should.be.false;
// return fs.exists(dbPath);
// }).then(exist => {
// exist.should.be.false;
// }));
});
2 changes: 1 addition & 1 deletion test/scripts/models/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Category', () => {
});
});

it.skip('parent - reference');
// it('parent - reference');

it('slug - virtual', () => Category.insert({
name: 'foo'
Expand Down

0 comments on commit 1bb233a

Please sign in to comment.