Files
bug-em/node_modules/generate-object-property/test.js
Talor Berthelson 889faf9c1c lol
2016-06-17 20:49:15 -04:00

12 lines
203 B
JavaScript

var tape = require('tape')
var gen = require('./')
tape('valid', function(t) {
t.same(gen('a', 'b'), 'a.b')
t.end()
})
tape('invalid', function(t) {
t.same(gen('a', '-b'), 'a["-b"]')
t.end()
})