Skip to content

Commit

Permalink
travis: tslint without --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Oct 3, 2019
1 parent ed62d6d commit 4cd9a75
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ before_script:
- npm run bootstrap

script:
- npm run lint
- npm run lint-ci
- npm run literate lint
- npm run prod-build
- npm run literate
- npm run cover && coveralls < ./coverage/lcov.info
- pushd integ/browser-tests >/dev/null && npm test && popd >/dev/null
- pushd integ/ndncxx-tests >/dev/null && npm test && popd >/dev/null
- pushd integ/browser-tests >/dev/null; npm test; popd >/dev/null
- pushd integ/ndncxx-tests >/dev/null; npm test; popd >/dev/null
10 changes: 5 additions & 5 deletions integ/ndncxx-tests/tests/keychain/cert/test.t.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Certificate, EcPrivateKey, ValidityPeriod } from "@ndn/keychain";
import { Encoder } from '@ndn/tlv';
import { Component } from '@ndn/name';
import { Component } from "@ndn/name";
import { Encoder } from "@ndn/tlv";

import { invoke } from '../../../test-fixture/cxxprogram';
import { invoke } from "../../../test-fixture/cxxprogram";

test("cxx decode", async () => {
const [, publicKey] = await EcPrivateKey.generate("/A/KEY/x", "P-256");
Expand All @@ -22,6 +22,6 @@ test("cxx decode", async () => {
expect(identity).toBe(cert.certName.subjectName.toString());
expect(keyId).toBe(cert.certName.keyId.toString());
expect(issuerId).toBe(cert.certName.issuerId.toString());
expect(parseInt(validityNotBefore)).toBe(validity.notBefore.getTime());
expect(parseInt(validityNotAfter)).toBe(validity.notAfter.getTime());
expect(parseInt(validityNotBefore, 10)).toBe(validity.notBefore.getTime());
expect(parseInt(validityNotAfter, 10)).toBe(validity.notAfter.getTime());
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": "rm -rf packages/*/lib/",
"cover": "jest --coverage",
"lint": "tslint --fix -p .",
"lint-ci": "tslint -p .",
"literate": "sh mk/literate-run.sh",
"preinstall": "node mk/only-allow-pnpm.js",
"prod-build": "npm run prod-build-d && npm run prod-build-js",
Expand Down

0 comments on commit 4cd9a75

Please sign in to comment.