@startinblox/boilerplate 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -360,20 +360,6 @@ describe("setupCacheOnResourceReady helper function", () => {
|
|
|
360
360
|
});
|
|
361
361
|
|
|
362
362
|
describe("Edge cases", () => {
|
|
363
|
-
it.skip("should handle empty string keyword (BUG: empty string matches at start of any URL)", () => {
|
|
364
|
-
const mockComponent = createMockComponent();
|
|
365
|
-
mockComponent.hasCachedDatas = true;
|
|
366
|
-
|
|
367
|
-
setupCacheOnResourceReady(mockComponent, { keywords: [""] });
|
|
368
|
-
|
|
369
|
-
const resourceEvent = new CustomEvent("resourceReady", {
|
|
370
|
-
detail: { id: "https://example.com/resource" },
|
|
371
|
-
});
|
|
372
|
-
document.dispatchEvent(resourceEvent);
|
|
373
|
-
|
|
374
|
-
expect(mockComponent.caching).to.equal(0);
|
|
375
|
-
});
|
|
376
|
-
|
|
377
363
|
it("should handle URL with no path", () => {
|
|
378
364
|
const mockComponent = createMockComponent();
|
|
379
365
|
mockComponent.hasCachedDatas = true;
|
|
@@ -307,19 +307,6 @@ describe("setupOnSaveReset helper function", () => {
|
|
|
307
307
|
});
|
|
308
308
|
|
|
309
309
|
describe("Edge cases", () => {
|
|
310
|
-
it.skip("should handle empty string keyword (BUG: empty string matches at start of any URL)", () => {
|
|
311
|
-
const mockComponent = createMockComponent();
|
|
312
|
-
|
|
313
|
-
setupOnSaveReset(mockComponent, { keywords: [""] });
|
|
314
|
-
|
|
315
|
-
const saveEvent = new CustomEvent("save", {
|
|
316
|
-
detail: { id: "https://example.com/resource" },
|
|
317
|
-
});
|
|
318
|
-
document.dispatchEvent(saveEvent);
|
|
319
|
-
|
|
320
|
-
expect(mockComponent._setValue).to.not.be.called;
|
|
321
|
-
});
|
|
322
|
-
|
|
323
310
|
it("should handle URL with no path", () => {
|
|
324
311
|
const mockComponent = createMockComponent();
|
|
325
312
|
|