You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
var mocha = require('mocha') , assert = require('chai').assert , expect = require('chai').expect ;
describe("Testing 'storeAsString' option", function(){ var key = '{ "key": 12345678901234567 }'; it("Should show that the key is of type object", function(done){ var JSONbig = require('../index'); var result = JSONbig.parse(key); expect(typeof result.key).to.equal("object"); done(); });
it("Should show that key is of type string, when storeAsString option is true", function(done){ var JSONstring = require('../index')({"storeAsString": true}); var result = JSONstring.parse(key); expect(typeof result.key).to.equal("string"); done(); }); });
|