Portfolio/node_modules/generate-object-property/test.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00

12 lines
No EOL
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()
})