blob: 6c299c67fd3165e7c13374d08951fa3b0a31cf23 [file] [log] [blame]
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()
})