Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcisbee committed Aug 7, 2024
1 parent a40780f commit 1f34c35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constructor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('extended exome instance has "Person" in id', () => {
assert.match(instance[exomeId], /^Person-[A-Z0-9]+$/);
});

test('extended another class has same id', () => {
test("extended another class has same id", () => {
class PersonParent extends Exome {}
class Person extends PersonParent {}
const instance = new Person();
Expand Down
2 changes: 1 addition & 1 deletion src/utils/wrapper.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { suite } from "uvu";
import assert from "uvu/assert";

import { wrapper, getAllPropertyNames } from "./wrapper.ts";
import { getAllPropertyNames, wrapper } from "./wrapper.ts";

{
const test = suite("wrapper");
Expand Down
3 changes: 2 additions & 1 deletion src/utils/wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { CONSTRUCTOR, FUNCTION } from "../constants.ts";
import { Exome } from "../constructor.ts";
import type { Exome } from "../constructor.ts";
import { runMiddleware } from "../middleware.ts";

export function getAllPropertyNames(obj: any) {
const props = [];

// biome-ignore lint/style/noParameterAssign:
while ((obj = Object.getPrototypeOf(obj)) && obj !== Object.prototype) {
props.push(
...Object.getOwnPropertyNames(obj).filter(
Expand Down

0 comments on commit 1f34c35

Please sign in to comment.