Skip to content

Commit

Permalink
fix(package.json): Fix generation of typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Kucherenko committed Aug 24, 2018
1 parent 635b67b commit 4769cf5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov",
"cov:check": "nyc report && nyc check-coverage --lines 73 --functions 57 --branches 56",
"doc": "run-s doc:html && opn build/docs/index.html",
"doc:html": "typedoc src/ --target ES6 --mode file --out build/docs",
"doc:html": "typedoc src/ --target ES6 --mode file --out build/docs --ignoreCompilerErrors",
"doc:json": "typedoc src/ --target ES6 --mode file --json build/docs/typedoc.json",
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
"version": "standard-version",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test('should detect clones in javascript files with all reporters', async (t: Ex
const jscpd = new JSCPD({
format: ['javascript'],
reporters: ['json', 'xml', 'console', 'consoleFull'],
threshold: 10,
threshold: 10
} as IOptions);
const clones: IClone[] = await jscpd.detectInFiles(__dirname + '/../../tests/fixtures/');
t.snapshot(clones);
Expand Down
1 change: 0 additions & 1 deletion src/listeners/sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { StoresManager } from '../stores/stores-manager';
import { generateSourceId } from '../utils';

export class SourcesListener implements IListener {

public attach(): void {
Events.on(MATCH_SOURCE_EVENT, this.matchSource.bind(this));
}
Expand Down
6 changes: 3 additions & 3 deletions src/stores/__tests__/files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ test('should initialize data from file', (t: ExecutionContext) => {
});

test('should initialize store with values', (t: ExecutionContext) => {
const store: IStore<any> = new FilesStore({name: 'test'});
store.init({'test': 'test'});
t.deepEqual(store.getAll(), {'test': 'test'});
const store: IStore<any> = new FilesStore({ name: 'test' });
store.init({ test: 'test' });
t.deepEqual(store.getAll(), { test: 'test' });
});

test('should delete record by key', (t: ExecutionContext) => {
Expand Down
4 changes: 2 additions & 2 deletions src/stores/__tests__/memory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { MemoryStore } from '../memory';

test('should initialize store with values', (t: ExecutionContext) => {
const store: IStore<any> = new MemoryStore();
store.init({'test': 'test'});
t.deepEqual(store.getAll(), {'test': 'test'});
store.init({ test: 'test' });
t.deepEqual(store.getAll(), { test: 'test' });
});

test('should delete record by key', (t: ExecutionContext) => {
Expand Down

0 comments on commit 4769cf5

Please sign in to comment.