Skip to content

Commit 23df375

Browse files
committed
chore(mongodb-ns): fix publishing ns package by renaming test file
1 parent 9b8e236 commit 23df375

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

packages/mongodb-ns/src/index.test.js renamed to packages/mongodb-ns/src/index.spec.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
var assert = require('assert');
2-
var ns = require('..');
1+
import assert from 'assert';
2+
import ns from './index';
33

44
describe('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',

packages/mongodb-ns/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json",
33
"compilerOptions": {
4-
"outDir": "dist",
5-
"allowJs": true,
6-
"strict": true
4+
"outDir": "dist"
75
},
86
"include": ["src/**/*"],
97
"exclude": ["./src/**/*.spec.*"]

0 commit comments

Comments
 (0)