mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
12 lines
203 B
JavaScript
12 lines
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()
|
|
}) |