Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed May 20, 2024
1 parent 9a238bf commit 5a8f66a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"lint": "NODE_OPTIONS=\"--max-old-space-size=8192\" nimbus eslint",
"lint:fix": "yarn lint --fix",
"prettier": "nimbus prettier",
"pretest": "yarn lint",
"test": "NODE_OPTIONS=\"--max-old-space-size=8192\" yarn jest",
"test:watch": "yarn lint:fix && yarn jest --watch",
"type": "nimbus typescript --build --reference-workspaces",
Expand Down
7 changes: 4 additions & 3 deletions packages/encodable-registry/test/models/Registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { Registry, OverwritePolicy } from '../../src';

const loader = () => 'testValue';

function testFunc(reg: Registry<unknown>) {
reg.registerValue('xyz', 'testValue');
}

describe('Registry', () => {
let registry: Registry<unknown>;

Expand Down Expand Up @@ -46,9 +50,6 @@ describe('Registry', () => {

describe('.apply(func)', () => {
it('applies a function to the registry', () => {
function testFunc(reg: Registry<unknown>) {
reg.registerValue('xyz', 'testValue');
}
registry.apply(testFunc);
expect(registry.get('xyz')).toBe('testValue');
});
Expand Down

0 comments on commit 5a8f66a

Please sign in to comment.