Blame view
node_modules/generate-object-property/test.js
203 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 |
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() }) |