Skip to content

Commit

Permalink
update deps, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalan committed Jun 8, 2017
1 parent 0917f50 commit d4d49f0
Show file tree
Hide file tree
Showing 5 changed files with 855 additions and 256 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"reshape": "^0.4.0",
"reshape-loader": "^1.0.0",
"rest": "^2.0.0",
"spike-util": "^1.0.0",
"spike-util": "^1.2.0",
"when": "^3.7.7"
},
"devDependencies": {
"ava": "^0.19.0",
"coveralls": "^2.11.16",
"nyc": "^10.1.2",
"ava": "^0.19.1",
"coveralls": "^2.13.1",
"nyc": "^11.0.2",
"posthtml-exp": "^0.9.0",
"reshape-standard": "^1.0.0",
"reshape-standard": "^1.1.0",
"rimraf": "^2.5.4",
"spike-core": "^1.0.0",
"standard": "^10.0.0"
"spike-core": "^1.3.1",
"standard": "^10.0.2"
},
"engines": {
"node": ">= 6.0.0"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/data/index.sgr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
p {{ test.result }}
p {{ test.success }}
2 changes: 1 addition & 1 deletion test/fixtures/testFile.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"result": true
"success": true
}
8 changes: 4 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('loads data correctly', (t) => {
return compileAndCheck({
fixture: 'data',
locals,
config: { addDataTo: locals, test: { data: { result: 'true' } } },
config: { addDataTo: locals, test: { data: { success: 'true' } } },
verify: (_, publicPath) => {
const out = fs.readFileSync(path.join(publicPath, 'index.html'), 'utf8')
t.is(out.trim(), '<p>true</p>')
Expand All @@ -39,7 +39,7 @@ test('loads a url correctly', (t) => {
return compileAndCheck({
fixture: 'data',
locals: locals,
config: { addDataTo: locals, test: { url: 'http://api.bycarrot.com/staff' } },
config: { addDataTo: locals, test: { url: 'http://api.bycarrot.com/v3/staff' } },
verify: (_, publicPath, cb) => {
const out = fs.readFileSync(path.join(publicPath, 'index.html'), 'utf8')
t.is(out.trim(), '<p>true</p>')
Expand Down Expand Up @@ -76,8 +76,8 @@ test('transform option works', (t) => {
config: {
addDataTo: locals,
test: {
data: { result: true },
transform: (data) => { return { result: false } }
data: { success: true },
transform: (data) => { return { success: false } }
}
},
verify: (_, publicPath, cb) => {
Expand Down
Loading

0 comments on commit d4d49f0

Please sign in to comment.