Skip to content

Commit

Permalink
single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemmarsh committed Nov 7, 2015
1 parent 324374a commit 4994907
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/directives/example_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ describe('Unit: ExampleDirective', function() {
angular.mock.inject(function($compile, $rootScope) {
scope = $rootScope;
element = angular.element('<div example-directive="{{message}}" title="{{title}}">Sample Directive</div>');
scope.title = "A sample title";
scope.message = "It doesn't hurt.";
scope.title = 'A sample title';
scope.message = 'It doesn\'t hurt.';
$compile(element)(scope);
scope.$digest();
});
});

it('should bind itself to the element', function() {
element.triggerHandler('click');
expect(window.alert).toHaveBeenCalledWith("Element clicked: It doesn't hurt.");
expect(window.alert).toHaveBeenCalledWith('Element clicked: It doesn\'t hurt.');
});

it('should update its bindings', function() {
scope.message = "It hurts a bit.";
scope.message = 'It hurts a bit.';
scope.$digest();
element.triggerHandler('click');
expect(window.alert).toHaveBeenCalledWith("Element clicked: It hurts a bit.");
expect(window.alert).toHaveBeenCalledWith('Element clicked: It hurts a bit.');
});

it('should bind a title property to its template', function() {
Expand Down

0 comments on commit 4994907

Please sign in to comment.