Skip to content

Commit

Permalink
fix: agrega test de propiedade permitidas en el objeto emulator.data
Browse files Browse the repository at this point in the history
  • Loading branch information
drusco committed Aug 6, 2023
1 parent 5786d14 commit 486c15b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/constructor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ describe("(constructor)", () => {
const emulator = new Emulator(config);
const data: Record<string, any> = map.emulators.get(emulator) || {};

const dataProps = [
"options",
"refs",
"totalProxies",
"activeProxies",
"firstProxy",
"lastProxy",
];

const {
options,
refs,
Expand All @@ -18,6 +27,7 @@ describe("(constructor)", () => {
} = data;

expect(map.emulators.has(emulator)).toBe(true);
expect(Object.keys(data)).toEqual(dataProps);
expect(options).toBe(config);
expect(Reflect.ownKeys(refs).length).toBe(0);
expect(totalProxies).toBe(0);
Expand Down

0 comments on commit 486c15b

Please sign in to comment.