projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Version 1
[yaffs-website]
/
node_modules
/
generate-object-property
/
test.js
1
var tape = require('tape')
2
var gen = require('./')
3
4
tape('valid', function(t) {
5
t.same(gen('a', 'b'), 'a.b')
6
t.end()
7
})
8
9
tape('invalid', function(t) {
10
t.same(gen('a', '-b'), 'a["-b"]')
11
t.end()
12
})