aboutsummaryrefslogtreecommitdiffstats
path: root/test/AngularSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/AngularSpec.js')
-rw-r--r--test/AngularSpec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js
index b58705cc..4ab14580 100644
--- a/test/AngularSpec.js
+++ b/test/AngularSpec.js
@@ -582,4 +582,20 @@ describe('angular', function(){
});
}
});
+
+
+ describe('nextUid()', function(){
+ it('should return new id per call', function(){
+ var seen = {};
+ var count = 100;
+
+ while(count--) {
+ var current = nextUid();
+ expect(current.match(/[\d\w]+/)).toBeTruthy();
+ expect(seen[current]).toBeFalsy();
+ seen[current] = true;
+ }
+ });
+ });
+
});