Browse Source

wip update tests

Steven Silvester 6 years ago
parent
commit
242609ea51
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/convert-to-chai.js
  2. 1 1
      tests/test-application/src/router.spec.ts

+ 1 - 1
tests/convert-to-chai.js

@@ -32,6 +32,6 @@ glob.sync(path.join(target, 'src', '*.ts*')).forEach(function(filePath) {
   src = src.split('to.eql(').join('to.deep.equal(');
   src = src.split('to.eql(').join('to.deep.equal(');
   src = src.split('to.be.a(').join('to.be.an.instanceof(');
   src = src.split('to.be.a(').join('to.be.an.instanceof(');
   src = src.split('to.be.an(').join('to.be.an.instanceof(');
   src = src.split('to.be.an(').join('to.be.an.instanceof(');
-  src = src.split(').to.be.empty()').join('.length).to.be(0)');
+  src = src.split(').to.be.empty()').join('.length).to.equal(0)');
   fs.writeFileSync(filePath, src, 'utf8');
   fs.writeFileSync(filePath, src, 'utf8');
 });
 });

+ 1 - 1
tests/test-application/src/router.spec.ts

@@ -148,7 +148,7 @@ describe('apputils', () => {
           }
           }
         });
         });
         router.register({ command: 'a', pattern: /#a/, rank: 10 });
         router.register({ command: 'a', pattern: /#a/, rank: 10 });
-        expect(recorded.length).to.be(0);
+        expect(recorded.length).to.equal(0);
 
 
         // Change the hash because changing location is a security error.
         // Change the hash because changing location is a security error.
         window.location.hash = 'a';
         window.location.hash = 'a';