chaijs / chai-json-schema

Chai plugin for JSON Schema v4
MIT License
75 stars 17 forks source link

Usage on karma #35

Closed canemacchina closed 8 years ago

canemacchina commented 8 years ago

How to use chai-json-schema with karma?

thabemmz commented 8 years ago

We do not have a Karma plugin, nor extensive Karma knowledge to help you.

Feel free to create a plugin for Karma though, it does not seem to be a very complicated implementation (see https://github.com/solatis/karma-chai-things for example).

davidrmckinnon commented 7 years ago

I created https://github.com/Blatmann/karma-chai-json-schema based on https://github.com/solatis/karma-chai-things, as suggested.

Unfortunately I get this error: AssertionError: tv4 dependency: expected undefined to be truthy at http://localhost:8080/_karma_node_modules/chai/chai.js:9320 PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 0 of 0 ERROR (0.12 secs / 0 secs)

Not sure where to go from here.