Skip to content
Permalink
Browse files

Chore: Fix favicon test

  • Loading branch information...
molant committed May 22, 2019
1 parent ccff856 commit 07349d6eb3fc2bdcd201adb1bbb011145fc4f9bc
Showing with 8 additions and 2 deletions.
  1. +4 −1 packages/connector-chrome/tests/collect.ts
  2. +4 −1 packages/connector-puppeteer/tests/collect.ts
@@ -85,7 +85,10 @@ test(`[${name}] Favicon is present in a 'link' element with 'rel' attribute set

test(`[${name}] Favicon is present in the root directory`, async (t) => {
const faviconInRootDir = `http://localhost/favicon.ico`;
const serverConfig: ServerConfiguration = { '/favicon.ico': fs.readFileSync(pathToFaviconInDir) };
const serverConfig: ServerConfiguration = {
'/': generateHTMLPage(),
'/favicon.ico': fs.readFileSync(pathToFaviconInDir)
};

const server = await runTest(t, ChromeConnector, serverConfig);

@@ -88,7 +88,10 @@ const tests = () => {

test(`[${name}] Favicon is present in the root directory`, async (t) => {
const faviconInRootDir = `http://localhost/favicon.ico`;
const serverConfig: ServerConfiguration = { '/favicon.ico': fs.readFileSync(pathToFaviconInDir) };
const serverConfig: ServerConfiguration = {
'/': generateHTMLPage(),
'/favicon.ico': fs.readFileSync(pathToFaviconInDir)
};

const server = await runTest(t, ChromeConnector, serverConfig);

0 comments on commit 07349d6

Please sign in to comment.
You can’t perform that action at this time.