equal
deleted
inserted
replaced
5 }}); |
5 }}); |
6 |
6 |
7 test("init the serializer with a DataLoader and an url", function() { |
7 test("init the serializer with a DataLoader and an url", function() { |
8 |
8 |
9 equal( this.ser._DataLoader, this.dt, "The dataloader reference is copied to the object." ); |
9 equal( this.ser._DataLoader, this.dt, "The dataloader reference is copied to the object." ); |
10 equal( this.ser._url, "http://google.com", "The url has been copied as well." ); |
10 equal( this.ser._url, "http://google.com", "The url has been copied as well." ); |
11 equal( this.ser._data, undefined, "The serializer data is not defined." ); |
11 deepEqual( this.ser._data, [], "The serializer data is not defined." ); |
12 }); |
12 }); |
13 |
13 |
14 test("check that the serialize and deserialize abstract functions are defined", function() { |
14 test("check that the serialize and deserialize abstract functions are defined", function() { |
15 notEqual(this.ser.serialize, undefined, ".serialize is defined"); |
15 notEqual(this.ser.serialize, undefined, ".serialize is defined"); |
16 notEqual(this.ser.deserialize, undefined, ".deserialize is defined"); |
16 notEqual(this.ser.deserialize, undefined, ".deserialize is defined"); |