bokkie
bokkie

Reputation: 1590

Use angular dragula without requirejs ends in failing js tests

I have the same issue as described here: Using Angular Dragula without RequireJS

It works if do this:

var app = angular.module('app', [
  angularDragula(angular)
]);
<script src="node_modules/angularjs-dragula/dist/angularjs-dragula.js"></script>

But all the jasmine tests fail with: Error: ReferenceError: Can't find variable: angularDragula

Upvotes: 0

Views: 111

Answers (1)

see sharper
see sharper

Reputation: 12055

Check your configuration file. You should have an array of file paths which includes angularjs-dragula.js, and the files must be ordered correctly (dependencies must come before the files that depend on them).

Upvotes: 1

Related Questions