| Current Path : /home/kamilrogam/komp/2018/180513/DARWIN/EDU/sass/1/node_modules/generate-object-property/ |
| Current File : /home/kamilrogam/komp/2018/180513/DARWIN/EDU/sass/1/node_modules/generate-object-property/test.js |
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()
})