Skip to content

Commit 88169b5

Browse files
committed
update deps, tests
1 parent 2a9f474 commit 88169b5

File tree

7 files changed

+1794
-825
lines changed

7 files changed

+1794
-825
lines changed

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
},
1010
"bugs": "https://github.com/static-dev/spike-page-id/issues",
1111
"devDependencies": {
12-
"ava": "^0.19.0",
13-
"coveralls": "^2.11.12",
14-
"nyc": "^10.0.0",
15-
"reshape-standard": "^1.0.0",
16-
"snazzy": "^6.0.0",
12+
"ava": "^0.24.0",
13+
"coveralls": "^3.0.0",
14+
"nyc": "^11.4.1",
15+
"reshape-standard": "^3.3.0",
16+
"snazzy": "^7.0.0",
1717
"spike-core": "^2.0.0",
18-
"standard": "^10.0.0"
18+
"standard": "^10.0.3"
1919
},
2020
"engines": {
2121
"node": ">= 6"

test/example/views/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>{{ pageId }}</p>

test/example/views/index.sgr

-1
This file was deleted.

test/example/views/nested/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>{{ pageId }}</p>

test/example/views/nested/index.sgr

-1
This file was deleted.

test/index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
const pageId = require('..')
22
const path = require('path')
3-
const {readFileSync} = require('fs')
3+
const { readFileSync } = require('fs')
44
const Spike = require('spike-core')
55
const htmlStandards = require('reshape-standard')
66
const test = require('ava')
77

8-
test.cb('basic', (t) => {
8+
test.cb('basic', t => {
99
const root = path.join(__dirname, 'example')
1010
const proj = new Spike({
1111
root,
12-
matchers: { html: '**/*.sgr' },
1312
entry: { main: [path.join(root, 'main.js')] },
1413
reshape: htmlStandards({
15-
locals: (ctx) => { return { pageId: pageId(ctx) } }
14+
locals: ctx => {
15+
return { pageId: pageId(ctx) }
16+
}
1617
})
1718
})
1819

0 commit comments

Comments
 (0)