Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

Commit

Permalink
Modify sample directive spec to es6
Browse files Browse the repository at this point in the history
  • Loading branch information
izumin5210 committed May 26, 2015
1 parent b7c9c4b commit 557af60
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/// <reference path="../../typings/bundle.d.ts" />

describe("HelloDirective", () => {
var $compile: ng.ICompileService;
var $rootScope: ng.IRootScopeService;

beforeEach(angular.mock.module("actopus"));

beforeEach(inject((_$compile_: ng.ICompileService, _$rootScope_: ng.IRootScopeService) => {
beforeEach(inject((_$compile_, _$rootScope_) => {
$compile = _$compile_;
$rootScope = _$rootScope_;
}));

it("contains hello world!", () => {
var element = $compile("<act-hello></act-hello>")($rootScope);
let element = $compile("<act-hello></act-hello>")($rootScope);
$rootScope.$digest();
expect(element.html()).toContain("hello world!");
});
Expand Down

0 comments on commit 557af60

Please sign in to comment.