Skip to content

Integrated with jasmine-jquery #87

@georgezhang

Description

@georgezhang

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions