Skip to content

Commit a4cbd56

Browse files
author
ekaterina.pavlenko
committed
Update test
1 parent 6f642ac commit a4cbd56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ describe("Directive", function () {
190190

191191
it("Changing language should translate again not loosing scope", function () {
192192
catalog.setCurrentLanguage("nl");
193-
$rootScope.name = "Ruben";
194-
var el = $compile("<div><div translate>Hello {{name}}!</div></div>")($rootScope);
193+
$rootScope.providedName = "Ruben";
194+
var el = $compile("<div><div translate translate-params-name='providedName'>Hello {{name}}!</div></div>")($rootScope);
195195
$rootScope.$digest();
196196
assert.equal(el.text(), "Hallo Ruben!");
197197
catalog.setCurrentLanguage("en");

0 commit comments

Comments
 (0)