Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

custom-history

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-history - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc