1- var assert = require ( 'assert' ) ;
2- var ns = require ( '..' ) ;
1+ import assert from 'assert' ;
2+ import ns from './index' ;
33
44describe ( 'ns' , function ( ) {
55 describe ( 'normal' , function ( ) {
@@ -112,23 +112,23 @@ describe('ns', function () {
112112 it ( 'should not accept `foo"bar` as a valid database name' , function ( ) {
113113 assert . equal ( ns ( 'foo"bar' ) . validDatabaseName , false ) ;
114114 } ) ;
115- it . skip ( 'should not accept `foo*bar` as a valid database name' , function ( ) {
116- assert . equal ( ns ( 'foo*bar' ) . validDatabaseName , false ) ;
115+ it ( 'should accept `foo*bar` as a valid database name' , function ( ) {
116+ assert . equal ( ns ( 'foo*bar' ) . validDatabaseName , true ) ;
117117 } ) ;
118- it . skip ( 'should not accept `foo<bar` as a valid database name' , function ( ) {
119- assert . equal ( ns ( 'foo<bar' ) . validDatabaseName , false ) ;
118+ it ( 'should accept `foo<bar` as a valid database name' , function ( ) {
119+ assert . equal ( ns ( 'foo<bar' ) . validDatabaseName , true ) ;
120120 } ) ;
121- it . skip ( 'should not accept `foo>bar` as a valid database name' , function ( ) {
122- assert . equal ( ns ( 'foo>bar' ) . validDatabaseName , false ) ;
121+ it ( 'should accept `foo>bar` as a valid database name' , function ( ) {
122+ assert . equal ( ns ( 'foo>bar' ) . validDatabaseName , true ) ;
123123 } ) ;
124- it . skip ( 'should not accept `foo:bar` as a valid database name' , function ( ) {
125- assert . equal ( ns ( 'foo:bar' ) . validDatabaseName , false ) ;
124+ it ( 'should accept `foo:bar` as a valid database name' , function ( ) {
125+ assert . equal ( ns ( 'foo:bar' ) . validDatabaseName , true ) ;
126126 } ) ;
127- it . skip ( 'should not accept `foo|bar` as a valid database name' , function ( ) {
128- assert . equal ( ns ( 'foo|bar' ) . validDatabaseName , false ) ;
127+ it ( 'should accept `foo|bar` as a valid database name' , function ( ) {
128+ assert . equal ( ns ( 'foo|bar' ) . validDatabaseName , true ) ;
129129 } ) ;
130- it . skip ( 'should not accept `foo?bar` as a valid database name' , function ( ) {
131- assert . equal ( ns ( 'foo?bar' ) . validDatabaseName , false ) ;
130+ it ( 'should accept `foo?bar` as a valid database name' , function ( ) {
131+ assert . equal ( ns ( 'foo?bar' ) . validDatabaseName , true ) ;
132132 } ) ;
133133 } ) ;
134134
@@ -224,7 +224,7 @@ describe('ns', function () {
224224
225225 describe ( 'sorting' , function ( ) {
226226 it ( 'should sort them' , function ( ) {
227- var names = [
227+ const names = [
228228 'admin' ,
229229 'canadian-things' ,
230230 'github' ,
@@ -233,7 +233,7 @@ describe('ns', function () {
233233 'statsd' ,
234234 'test' ,
235235 ] ;
236- var expect = [
236+ const expect = [
237237 'canadian-things' ,
238238 'github' ,
239239 'scope_stat' ,
0 commit comments