Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81159 views
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
})
13