"use strict";

describe("BIBFRAME Editor application", function() {
    beforeEach(module("bibframeEditor"));

    var $scope, $controller;

    beforeEach(inject(function($rootScope, _$controller_) {
        $scope = $rootScope.$new()
        $controller = _$controller_;
    }));

    describe("editor contoller", function() {
        it("should exist", function() {
            var editorCtrl = $controller("EditorCtrl", {$scope: $scope});
            expect(editorCtrl).toBeDefined();
        });
    });
});

@@ -228,16 +228,17 @@
 e.$new()
+;
 %0A       
@@ -502,13 +502,1252 @@
 %0A    %7D);
+%0A%0A    describe(%22ngEnter attribute directive%22, function() %7B%0A        var elm;%0A        beforeEach(inject(function($compile) %7B%0A            $scope.a = 0;%0A            $scope.setIt = function() %7B%0A                ++$scope.a;%0A            %7D%0A            elm = angular.element(%22%3Cspan ng-enter='setIt()'%3Etest%7B%7Ba%7D%7D%3C/span%3E%22);%0A            $compile(elm)($scope);%0A        %7D));%0A%0A        it(%22should evaluate on Enter key down%22, function() %7B%0A            expect(elm.text()).toEqual(%22test%7B%7Ba%7D%7D%22);%0A            $scope.$digest();%0A            expect($scope.a).toEqual(0);%0A            expect(elm.text()).toEqual(%22test0%22);%0A            var e = new KeyboardEvent(%22keydown%22, %7Bcode: %22Enter%22, key: %22Enter%22, location: 0, which: 13%7D);%0A            // Keyboard stuff is so jacked up across browsers that this%0A            // test will fail in Chrome and Safari; the implementation should%0A            // be sufficient to work cross-browser, but it's not worth the%0A            // trouble to make the test work cross-browser.%0A            if (typeof e.code !== %22undefined%22) %7B%0A                elm%5B0%5D.dispatchEvent(e);%0A                $scope.$digest();%0A                expect($scope.a).toEqual(1);%0A                expect(elm.text()).toEqual(%22test1%22);%0A            %7D%0A        %7D);%0A    %7D);
 %0A%7D);%0A

add missing semi; test directive, with notes on how the test isn't cross-browser because that's a test more complex than the function it's testing