dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/generate-object-property/test.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02: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()
})