-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
I am trying to use https://github.com/velesin/jasmine-jquery.git with requirejs. The plugin had been load successfully. But I am unable to load its matchers and getting the error below:
Error: require: undefined is not a constructor (evaluating 'expect(spyEvent).toHaveBeenTriggered()')
My template option is:
templateOptions: {
requireConfigFile: 'js/config.js',
requireConfig: {
baseUrl: 'js',
paths: {
'jquery': 'http://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min',
'jasmine-jquery': '../../../../bower_components/jasmine-jquery/lib/jasmine-jquery',
},
shim: {
'jasmine-jquery': {
deps: ['jquery'],
exports: 'jasmine-jquery'
}
},
},
Any idea? or Any example?
Metadata
Metadata
Assignees
Labels
No labels