Skip to content

Commit d007e82

Browse files
Merge pull request #58 from yunusemredilber/improvement/improve-fragment-queries
Improve async fragment loading tests
2 parents 004914a + 397b912 commit d007e82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/core.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ describe('Module - Core', () => {
198198
const assets = [
199199
{
200200
name: 'bundle1',
201+
gateway: 'test',
201202
dependent: ['vendor1'],
202203
preLoaded: false,
203204
link: 'bundle1.js',
@@ -236,6 +237,7 @@ describe('Module - Core', () => {
236237

237238
const fragmentContainer = global.window.document.createElement('div');
238239
fragmentContainer.setAttribute('puzzle-fragment', 'test');
240+
fragmentContainer.setAttribute('puzzle-gateway', 'test');
239241
global.window.document.body.appendChild(fragmentContainer);
240242

241243
const fetchStub = global.fetch as SinonStub;
@@ -254,6 +256,7 @@ describe('Module - Core', () => {
254256
const assets = [
255257
{
256258
name: 'bundle1',
259+
gateway: 'test',
257260
dependent: ['vendor1'],
258261
preLoaded: false,
259262
link: 'bundle1.js',
@@ -295,6 +298,7 @@ describe('Module - Core', () => {
295298

296299
const fragmentContainer = global.window.document.createElement('div');
297300
fragmentContainer.setAttribute('puzzle-fragment', 'test');
301+
fragmentContainer.setAttribute('puzzle-gateway', 'test');
298302
global.window.document.body.appendChild(fragmentContainer);
299303

300304
const fetchStub = global.fetch as SinonStub;
@@ -370,6 +374,7 @@ describe('Module - Core', () => {
370374
const assets = [
371375
{
372376
name: 'bundle1',
377+
gateway: 'test',
373378
dependent: ['vendor1'],
374379
preLoaded: false,
375380
link: 'bundle1.js',
@@ -409,6 +414,7 @@ describe('Module - Core', () => {
409414

410415
const fragmentContainer = global.window.document.createElement('div');
411416
fragmentContainer.setAttribute('puzzle-fragment', 'test');
417+
fragmentContainer.setAttribute('puzzle-gateway', 'test');
412418
global.window.document.body.appendChild(fragmentContainer);
413419

414420
const fetchStub = global.fetch as SinonStub;

0 commit comments

Comments
 (0)