Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
outsideris committed Feb 13, 2015
1 parent 6694423 commit 4093fbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/angular-summernote.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ describe('Summernote directive', function() {
});

it('should be assigned as editable object', function () {
var el = $('<summernote editable="myEditable"></summernote>').appendTo(document.body);
var element = $compile(el)($rootScope);
$rootScope.$digest();
var el = $('<summernote editable="myEditable"></summernote>');
var element = $compile(el)(scope);
scope.$digest();

expect(element.next().find('.note-editable').get(0)).to.be.equal(scope.myEditable.get(0));

Expand Down

0 comments on commit 4093fbe

Please sign in to comment.