Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit c10c34a

Browse files
author
Doug DiFilippo
committed
Bump to version 2.0.0
1 parent ba4b4b7 commit c10c34a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dist/dng-test-utils.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,12 @@ module.exports =
210210
function createWithScope(markup, scope) {
211211
var $el = $compile(angular.element(markup))(scope);
212212
$rootScope.$digest();
213-
return $el;
213+
var isolateScope = $el.isolateScope();
214+
return { $el: $el, scope: scope, isolateScope: isolateScope };
214215
}
215216

216217
function createWithBindings(markup, bindings) {
217-
var scope = createScope(bindings);
218-
var $el = createWithScope(markup, scope);
219-
return { $el: $el, scope: scope };
218+
return createWithScope(markup, createScope(bindings));
220219
}
221220

222221
function create(markup) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dng-test-utils",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"description": "Angular Test Utilities",
55
"main": "dist/dng-test-utils.js",
66
"scripts": {

0 commit comments

Comments
 (0)