Skip to content

Commit

Permalink
Use new module names in spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed May 1, 2014
1 parent 3639983 commit 0ca6afa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/main_controller_spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"use strict";

describe('MainController', function() {
beforeEach(module('annotationApp'));
beforeEach(module('arethusa'));

it('sets scope values', inject(function($controller) {
var scope = {};
var mystate = { "mystate": "state"};
var ctrl = $controller('MainController', {$scope:scope, state:mystate, configurator: {
conf_for : function(name) {
configurationFor : function(name) {
return { plugins: { "plugin1" : {}, "plugin2" : {} }, template: "template"};
}
}});
Expand Down
4 changes: 2 additions & 2 deletions spec/services/morph_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
describe('morph', function() {
var mockState = {};
var mockConfigurator = {
conf_for: function(name) {
configurationFor: function(name) {
return {};
},
getService: function(name) {
return {};
}
};

beforeEach(module('annotationApp', function($provide) {
beforeEach(module('arethusa', function($provide) {
$provide.value('state', mockState);
$provide.value('configurator', mockConfigurator);
}));
Expand Down

0 comments on commit 0ca6afa

Please sign in to comment.