Comments (2)
Not enough to go on here. Need to see more of the error flow
I'm suspecting an error when bard loads. If bard can't load, the bard
object will not be defined.
One common cause is neglecting to load sinon.js first. Bard depends on sinon.
What does your frameworks
array look like? The following has been shown to work.
// frameworks to use
// some available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'chai', 'sinon', 'chai-sinon'],
'chai-sinon` may be unfamiliar to you. Check it out here.
You might try creating an index.html, listing in order all of the files that you think karma should load. It might be easier to discover what's going wrong that way.
from bardjs.
closing due to inactivity
from bardjs.
Related Issues (20)
- Issue testing routes using bardjs
- Failed to instantiate module function fakeRouteProvider
- mockService cannot omit config HOT 2
- Mocking a Data Service
- Mock Data Undefined HOT 1
- Type error 'undefined' evaluating 'bard.appModule....' HOT 2
- How to test Controller with $scope? HOT 11
- ReferenceError: Can't find variable: getinjectargs HOT 1
- Unable to test using PhantomJS HOT 6
- Unit testing with ng-html2js and Bard.js possible
- Mock resolving promise
- add components (angular 1.5 ) option to bardjs HOT 3
- Missing plugin for ESLint HOT 8
- Compile errors with Bard + Typescript + Jasmine HOT 3
- Unable to install - "Not compatible with your operating system or architecture: [email protected]"
- How to test a service with mocked dependencies services HOT 1
- This repo needs a new caretaker
- Publish v0.1.10 to npm
- MockService Doesn't Work with Services Defined as an ES6 Class
- v
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bardjs.