From 4366b20f78a2cc7de496cfe17af8d23a6b2bb5ba Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 25 May 2017 16:50:19 +0200 Subject: [PATCH] improve tests --- test/test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test.ts b/test/test.ts index b86a501..a70bbdb 100644 --- a/test/test.ts +++ b/test/test.ts @@ -18,4 +18,11 @@ tap.test('should convert an object to a string', async () => { expect(myString).to.equal(yamlString) }) +// test some behaviours +tap.test('should allow dots in key', async () => { + let testString = `myKey.with.dots: some` + let testObject = await smartyaml.yamlStringToObject(testString) + expect(testObject['myKey.with.dots']).to.equal('some') +}) + tap.start()