diff src/suffixLabels.test.ts @ 20:9ec3cbc8791a

build is running, but no tests, and lots of code is disabled
author drewp@bigasterisk.com
date Fri, 13 Dec 2019 01:18:00 -0800
parents 94629c39681c
children 45ed53428e74
line wrap: on
line diff
--- a/src/suffixLabels.test.ts	Thu Dec 12 23:07:06 2019 -0800
+++ b/src/suffixLabels.test.ts	Fri Dec 13 01:18:00 2019 -0800
@@ -1,20 +1,20 @@
-//import {describe, test, expect} from 'jest';
-import { SuffixLabels } from './suffixLabels';
+// import {describe, test, expect} from 'jest';
+// import { SuffixLabels } from './suffixLabels';
 
-describe('_tailSegments', () => {
-  test("returns right amount", () => {
-    expect(SuffixLabels._tailSegments('http://foo/a/bb', 0)).equalTo('');
-    //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 1), 'bb');
-    //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 2), 'a/bb');
-    //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 3), 'foo/a/bb');
-    //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 4), '/foo/a/bb');
-    //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 5), 'http://foo/a/bb');
-  });
-  // test("_tailSegments ok with trailing slash", (t) => {
-  //   t.is(SuffixLabels._tailSegments('http://foo/', 0), '');
-  //   t.is(SuffixLabels._tailSegments('http://foo/', 1), '');
-  //   t.is(SuffixLabels._tailSegments('http://foo/', 2), 'foo/');
-});
+// describe('_tailSegments', () => {
+//   test("returns right amount", () => {
+//     expect(SuffixLabels._tailSegments('http://foo/a/bb', 0)).toEqual('');
+//     //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 1), 'bb');
+//     //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 2), 'a/bb');
+//     //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 3), 'foo/a/bb');
+//     //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 4), '/foo/a/bb');
+//     //   t.is(SuffixLabels._tailSegments('http://foo/a/bb', 5), 'http://foo/a/bb');
+//   });
+//   // test("_tailSegments ok with trailing slash", (t) => {
+//   //   t.is(SuffixLabels._tailSegments('http://foo/', 0), '');
+//   //   t.is(SuffixLabels._tailSegments('http://foo/', 1), '');
+//   //   t.is(SuffixLabels._tailSegments('http://foo/', 2), 'foo/');
+// });
 
 
 // describe("suffixLabels", () => {