Skip to content

Commit

Permalink
concatinate test string
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad committed Jan 23, 2024
1 parent d1f3952 commit 7351266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hosting-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import https from "https";
/* eslint-disable jest/no-disabled-tests */

process.env.CO2JS_VERSION = "1.2.34";
const requestHeaderComment = "Test Runner";
const requestHeaderComment = "TestRunner";

describe("hostingAPI", () => {
let httpsGetSpy;
Expand All @@ -26,7 +26,7 @@ describe("hostingAPI", () => {
expect(httpsGetSpy).toHaveBeenLastCalledWith(
expect.any(String),
expect.objectContaining({
headers: { "User-Agent": "co2js/1.2.34 Test Runner" },
headers: { "User-Agent": "co2js/1.2.34 TestRunner" },
}),
expect.any(Function)
);
Expand Down
4 changes: 2 additions & 2 deletions src/hosting.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import pagexray from "pagexray";
import hosting from "./hosting-node.js";

process.env.CO2JS_VERSION = "1.2.34";
const requestHeaderComment = "Test Runner";
const requestHeaderComment = "TestRunner";

const jsonPath = path.resolve(
__dirname,
Expand Down Expand Up @@ -72,7 +72,7 @@ describe("hosting", () => {
expect(httpsGetSpy).toHaveBeenLastCalledWith(
expect.any(String),
expect.objectContaining({
headers: { "User-Agent": "co2js/1.2.34 Test Runner" },
headers: { "User-Agent": "co2js/1.2.34 TestRunner" },
}),
expect.any(Function)
);
Expand Down

0 comments on commit 7351266

Please sign in to comment.