projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1
[yaffs-website]
/
node_modules
/
generate-object-property
/
test.js
diff --git a/node_modules/generate-object-property/test.js
b/node_modules/generate-object-property/test.js
new file mode 100644
(file)
index 0000000..
6c299c6
--- /dev/null
+++ b/
node_modules/generate-object-property/test.js
@@ -0,0
+1,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()
+})
\ No newline at end of file