-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tunnckoCore
committed
Jan 22, 2015
1 parent
5dfee00
commit 0e2cb3a
Showing
13 changed files
with
95 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
## v1.0.0 / January 22, 2015 | ||
- publish | ||
|
||
## v0.0.1 / December 20, 2014 | ||
- waiting [export-files#1](https://github.com/jonschlinkert/export-files/pull/1) merge | ||
- ~~waiting [export-files#1](https://github.com/jonschlinkert/export-files/pull/1) merge~~ | ||
|
||
## v0.0.0 / December 20, 2014 | ||
- init commits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,44 @@ | ||
/** | ||
* mustache-spec <https://github.com/tunnckoCore/mustache-spec> | ||
* | ||
* Copyright (c) 2014 Charlike Mike Reagent, contributors. | ||
* Copyright (c) 2015 Charlike Mike Reagent, contributors. | ||
* Released under the MIT license. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var assert = require('assert'); | ||
var specs = require('./index'); | ||
|
||
describe('mustache-spec', function() { | ||
it('should be javascript object with all data', function(done) { | ||
Object.keys(specs).should.have.lengthOf(7); | ||
specs.should.have.properties('comments', 'delimiters', 'sections'); | ||
specs.comments.tests[0].name.should.equal('Inline'); | ||
specs.sections.tests[3].name.should.equal('Deeply Nested Contexts'); | ||
specs.sections.tests[3].data.a.one.should.equal(1); | ||
specs.sections.tests[3].data.d.should.eql({four: 4}); | ||
specs.partials.overview.should.startWith('Partial tags are used to'); | ||
describe('mustache-spec:', function() { | ||
it('should be json object with all data', function(done) { | ||
assert.strictEqual(Object.keys(specs()).length, 6); | ||
assert(specs().comments && specs().delimiters && specs().sections); | ||
assert.strictEqual(specs().sections.tests[3].name, 'Deeply Nested Contexts'); | ||
done(); | ||
}); | ||
it('should have comments.json spec', function(done) { | ||
assert.strictEqual(Object.keys(specs()).length, 6); | ||
assert(specs().comments); | ||
assert.strictEqual(specs().comments.tests[0].name, 'Inline'); | ||
done(); | ||
}); | ||
it('should have delimiters.json spec', function(done) { | ||
assert.strictEqual(Object.keys(specs()).length, 6); | ||
assert(specs().delimiters); | ||
done(); | ||
}); | ||
it('should have sections.json spec', function(done) { | ||
assert.strictEqual(Object.keys(specs()).length, 6); | ||
assert(specs().sections); | ||
assert.strictEqual(specs().sections.tests[3].data.a.one, 1); | ||
assert.deepEqual(specs().sections.tests[3].data.d, {four: 4}); | ||
done(); | ||
}); | ||
it('should have partials.json spec', function(done) { | ||
assert.strictEqual(Object.keys(specs()).length, 6); | ||
assert(specs().partials); | ||
assert(specs().partials.overview.indexOf('Partial tags are used to') !== -1); | ||
done(); | ||
}); | ||
}); |