custom-history
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "custom-history", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -38,2 +38,3 @@ "description": "Custom hash history implemenation for preact", | ||
"@types/mocha": "2.2.48", | ||
"@types/nightmare": "2.10.2", | ||
"@types/node": "9.4.6", | ||
@@ -40,0 +41,0 @@ "chokidar-cli": "1.2.0", |
@@ -39,1 +39,4 @@ # custom-history | ||
See [CHANGELOG](CHANGELOG.md) | ||
## TODO | ||
* Move to jest, ts-jest |
import { spawn, ChildProcess } from 'child_process'; | ||
import * as assert from 'assert'; | ||
const Nightmare = require('nightmare'); | ||
import Nightmare = require('nightmare'); | ||
@@ -10,3 +10,3 @@ describe('browser', function() { | ||
let serverProc: ChildProcess; | ||
let nightmare: any; | ||
let nightmare: Nightmare; | ||
@@ -27,7 +27,7 @@ before(done => { | ||
beforeEach(() => { | ||
nightmare = Nightmare().goto('http://localhost:8080'); | ||
nightmare = new Nightmare().goto('http://localhost:8080'); | ||
}); | ||
it('about', async () => { | ||
const body: string = await nightmare | ||
const body = await nightmare | ||
.click('a[href="#/about"]') | ||
@@ -40,3 +40,3 @@ .evaluate(() => document.body.innerHTML) | ||
it('link home', async () => { | ||
const body: string = await nightmare | ||
const body = await nightmare | ||
.click('a[href="/"]') | ||
@@ -43,0 +43,0 @@ .evaluate(() => document.body.innerHTML) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42
11632
29
9
163