Skip to content

Commit 5a8f66a

Browse files
committed
fix: lint
1 parent 9a238bf commit 5a8f66a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"lint": "NODE_OPTIONS=\"--max-old-space-size=8192\" nimbus eslint",
1919
"lint:fix": "yarn lint --fix",
2020
"prettier": "nimbus prettier",
21+
"pretest": "yarn lint",
2122
"test": "NODE_OPTIONS=\"--max-old-space-size=8192\" yarn jest",
2223
"test:watch": "yarn lint:fix && yarn jest --watch",
2324
"type": "nimbus typescript --build --reference-workspaces",

packages/encodable-registry/test/models/Registry.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import { Registry, OverwritePolicy } from '../../src';
55

66
const loader = () => 'testValue';
77

8+
function testFunc(reg: Registry<unknown>) {
9+
reg.registerValue('xyz', 'testValue');
10+
}
11+
812
describe('Registry', () => {
913
let registry: Registry<unknown>;
1014

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

4751
describe('.apply(func)', () => {
4852
it('applies a function to the registry', () => {
49-
function testFunc(reg: Registry<unknown>) {
50-
reg.registerValue('xyz', 'testValue');
51-
}
5253
registry.apply(testFunc);
5354
expect(registry.get('xyz')).toBe('testValue');
5455
});

0 commit comments

Comments
 (0)