Code Review
/
vnfsdk
/
refrepo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug:Fix file validation issue
[vnfsdk/refrepo.git]
/
vnfmarket
/
src
/
main
/
webapp
/
vnfmarket
/
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
})