Added test on number keys

pull/2/head
Louis Chatriot 9 years ago
parent 84365c7fe0
commit f3e3fcae50
  1. 8
      test/model.test.js

@ -11,7 +11,7 @@ var model = require('../lib/model')
describe('Model', function () {
describe('Serialization, deserialization', function () {
describe.only('Serialization, deserialization', function () {
it('Can serialize and deserialize strings', function () {
var a, b, c;
@ -162,6 +162,12 @@ describe('Model', function () {
});
});
it('Can accept objects whose keys are numbers', function () {
var o = { 42: true };
var s = model.serialize(o);
});
}); // ==== End of 'Serialization, deserialization' ==== //

Loading…
Cancel
Save