Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic examples are responding with errors #30

Open
sebs opened this issue Apr 11, 2017 · 1 comment
Open

Basic examples are responding with errors #30

sebs opened this issue Apr 11, 2017 · 1 comment

Comments

@sebs
Copy link

sebs commented Apr 11, 2017

This file in /test

'use strict'
const { renderHtml } = require('ko-component-tester')

with the following package.json

{
  "name": "knockout-tests",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "mocha"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "jquery": "^2.2.0",
    "knockout": "^3.4.2",
    "ko-component-tester": "^3.2.1"
  }
}

gives errors

> knockout-tests@1.0.0 test /Users/sebs/projects/customers/sumcumo/knockout-tests
> mocha

/Users/sebs/projects/..../knockout-tests/node_modules/ko-component-tester/dist/ko-component-tester.js:67
	$.fn.simulate = function (eventName, value) {
	              ^

TypeError: Cannot set property 'simulate' of undefined
    at Object.module.exports (....
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
@sebs
Copy link
Author

sebs commented Apr 11, 2017

➜ knockout-tests npm -v
3.10.3
➜ knockout-tests node -v
v6.7.0
➜ knockout-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant