Skip to content

Commit

Permalink
change should.include to should.containEql see http://shouldjs.github…
Browse files Browse the repository at this point in the history
  • Loading branch information
yize committed Apr 29, 2015
1 parent e6d39e6 commit 8e79e84
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/sdk.file.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('file', function() {
});
it('can list files', function() {
var datafiles = file.list(__dirname + '/data');
datafiles.should.include(__dirname + '/data/year/2012-1.md');
datafiles.should.containEql(__dirname + '/data/year/2012-1.md');
});
it('can read json', function() {
var data = file.readJSON(__dirname + '/../package.json');
Expand Down
6 changes: 3 additions & 3 deletions tests/sdk.filters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ var filters = require('..').sdk.filters;
describe('filters', function() {
it('can render markdown', function() {
var markdown = filters.filters.markdown;
markdown('# header').should.include('header</h1>');
markdown('# header').should.containEql('header</h1>');
});
it('can render xmldatetime', function() {
var xmldatetime = filters.filters.xmldatetime;
xmldatetime('2012-12-25').should.include('2012-12-25T00:00:00');
xmldatetime('2012-12-25').should.containEql('2012-12-25T00:00:00');

var d = new Date();
xmldatetime(d).should.equal(d.toISOString());
Expand Down Expand Up @@ -132,6 +132,6 @@ describe('highlight', function() {
it('can highlight code', function() {
var code = 'var foo = "bar";';
var func = filters.filters.highlight;
func(code, 'js').should.include('highlight');
func(code, 'js').should.containEql('highlight');
});
});
2 changes: 1 addition & 1 deletion tests/sdk.highlight.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ describe('highlight.render', function() {
});

it('should render highlight code', function() {
hl.render('var a', 'js').should.include('highlight');
hl.render('var a', 'js').should.containEql('highlight');
});
});
4 changes: 2 additions & 2 deletions tests/sdk.markdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ var text = [

describe('markdown.render', function() {
it('should have injected code', function() {
md.render(text).should.include('nico-insert-code');
md.render(text).should.containEql('nico-insert-code');
});
it('should have iframe code', function() {
md.render(text).should.include('allowtransparency');
md.render(text).should.containEql('allowtransparency');
});
});

Expand Down
2 changes: 1 addition & 1 deletion tests/sdk.post.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('post', function() {

it('has toc', function() {
var data = post.read(__dirname + '/data/unicode-post.md');
data.toc.should.include('<ul>');
data.toc.should.containEql('<ul>');
});

it('can load posts', function() {
Expand Down

0 comments on commit 8e79e84

Please sign in to comment.