Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ jobs:
name: Install dev dependencies
- run: npm run lint
name: Run linter
- run: npm run format:check
name: Run Prettier check
- run: npm run test
name: Run unit tests
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,4 @@ export interface DeviceInfo {
/** The visibility class
* @example "default" */
visibilityClass: string;
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
"clean": "npm run build -- --clean",
"rebuild": "npm run clean; npm run build",
"dev": "npm run build -- --watch",
"format": "prettier -w ./lib",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"format": "prettier -w ./lib ./test",
"format:check": "prettier --check ./lib ./test",
"prepare": "npm run build",
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.*js\"",
"e2e-test": "mocha --exit --timeout 5m \"./test/e2e/**/*-specs.js\""
Expand Down
4 changes: 2 additions & 2 deletions test/unit/devicectl-specs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'chai';
import { Devicectl } from '../../lib/devicectl';
import {expect} from 'chai';
import {Devicectl} from '../../lib/devicectl';

describe('Devicectl', function () {
let devicectl: Devicectl;
Expand Down