aboutsummaryrefslogtreecommitdiffstats
path: root/test/EntityDeclarationTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/EntityDeclarationTest.js')
-rw-r--r--test/EntityDeclarationTest.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/EntityDeclarationTest.js b/test/EntityDeclarationTest.js
index 5cab90f4..d64dd775 100644
--- a/test/EntityDeclarationTest.js
+++ b/test/EntityDeclarationTest.js
@@ -2,7 +2,7 @@ EntityDeclarationTest = TestCase('EntityDeclarationTest');
EntityDeclarationTest.prototype.testEntityTypeOnly = function(){
expectAsserts(2);
- var scope = new nglr.Scope({$datastore:{entity:function(name){
+ var scope = new Scope({$datastore:{entity:function(name){
assertEquals("Person", name);
}}});
var init = scope.entity("Person");
@@ -11,7 +11,7 @@ EntityDeclarationTest.prototype.testEntityTypeOnly = function(){
EntityDeclarationTest.prototype.testWithDefaults = function(){
expectAsserts(4);
- var scope = new nglr.Scope({$datastore:{entity:function(name, init){
+ var scope = new Scope({$datastore:{entity:function(name, init){
assertEquals("Person", name);
assertEquals("=a:", init.a);
assertEquals(0, init.b.length);
@@ -22,7 +22,7 @@ EntityDeclarationTest.prototype.testWithDefaults = function(){
EntityDeclarationTest.prototype.testWithName = function(){
expectAsserts(2);
- var scope = new nglr.Scope({$datastore:{entity:function(name, init){
+ var scope = new Scope({$datastore:{entity:function(name, init){
assertEquals("Person", name);
return function (){ return {}; };
}}});
@@ -34,7 +34,7 @@ EntityDeclarationTest.prototype.testMultipleEntities = function(){
expectAsserts(3);
var expect = ['Person', 'Book'];
var i=0;
- var scope = new nglr.Scope({$datastore:{entity:function(name, init){
+ var scope = new Scope({$datastore:{entity:function(name, init){
assertEquals(expect[i], name);
i++;
return function (){ return {}; };