improve tests

This commit is contained in:
Philipp Kunz 2017-05-25 16:50:19 +02:00
parent f23ede80c0
commit 4366b20f78

View File

@ -18,4 +18,11 @@ tap.test('should convert an object to a string', async () => {
expect(myString).to.equal(yamlString) 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() tap.start()