Skip to content

Commit 12ba17e

Browse files
alexander-akaitclaude
authored andcommitted
test: reach the scopes helpers through the public export
The cases required the helper module directly, so the getter that exposes it on `util` was never run.
1 parent 642a3d7 commit 12ba17e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/scopes.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ describe("scopes", () => {
9696
).toBe(mapOf(source, options).scopes);
9797
});
9898

99+
it("exposes the helpers on the public util export", () => {
100+
const { util } = require("../");
101+
102+
expect(util.scopes.addScopesToSourceMap).toBe(addScopesToSourceMap);
103+
expect(util.scopes.collectSourceScopes).toBe(collectSourceScopes);
104+
expect(util.scopes.encodeScopes).toBe(encodeScopes);
105+
});
106+
99107
describe("cachedSource", () => {
100108
/**
101109
* @returns {CachedSource} a cached source over one module with bindings

0 commit comments

Comments
 (0)