Skip to content

Commit

Permalink
test: update domain path to one that resolves
Browse files Browse the repository at this point in the history
`testing.imgix` source has been disabled. This commit changes the urls
to be `assets.imgix` in the tests that used the old url.
  • Loading branch information
luqven committed Apr 20, 2021
1 parent 76ffcf8 commit 8120c5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/unit/build-src-set.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('buildSrcSet', () => {
};
ImgixClient.mockImplementation(() => mockImgixClient);
vueImgixClient = buildImgixClient({
domain: 'testing.imgix.net',
domain: 'assets.imgix.net',
});
});
afterAll(() => {
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/build-url-object.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ describe('buildUrlObject', () => {
let client: IVueImgixClient;
beforeAll(() => {
client = buildImgixClient({
domain: 'testing.imgix.net',
domain: 'assets.imgix.net',
});
});

it('builds an imgix url', () => {
const { src, srcset } = client.buildUrlObject('/examples/pione.jpg', {});

expect(src).toMatch(/testing.imgix.net\/examples\/pione.jpg/);
expect(srcset).toMatch(/testing.imgix.net\/examples\/pione.jpg/);
expect(src).toMatch(/assets.imgix.net\/examples\/pione.jpg/);
expect(srcset).toMatch(/assets.imgix.net\/examples\/pione.jpg/);
});
it('adds ixlib to imgix url', async () => {
const { src, srcset } = client.buildUrlObject('/examples/pione.jpg', {});
Expand Down Expand Up @@ -54,7 +54,7 @@ describe('buildUrlObject', () => {
};
ImgixClient.mockImplementation(() => mockImgixClient);
vueImgixClient = buildImgixClient({
domain: 'testing.imgix.net',
domain: 'assets.imgix.net',
});
});
afterAll(() => {
Expand Down

0 comments on commit 8120c5c

Please sign in to comment.