We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b6df4 commit 6dda885Copy full SHA for 6dda885
test/util.test.ts
@@ -163,9 +163,18 @@ describe("util", () => {
163
})
164
165
166
- it.skip("should include queryOpts", () => {
+ it("should include queryOpts", () => {
167
+ // Trying to understand how the implementation works
168
+ // 1. It grabs the search params from location.search (i.e. ?)
169
+ // 2. it then grabs the "options" param if it exists
170
+ // 3. then it creates a new options object
171
+ // spreads the original options
172
+ // then parses the queryOpts
173
+ location.search = '?options={"logLevel":2}'
174
expect(getOptions()).toStrictEqual({
175
base: "",
176
+ csStaticBase: "",
177
+ logLevel: 2,
178
179
180
0 commit comments