Skip to content

Commit

Permalink
fix INPUT_JSON_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed May 10, 2023
1 parent 087f934 commit 68f3b60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/scriptlets/prevent-fetch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ if (!isSupported) {

test('simple fetch -- all original response properties are not modified', async (assert) => {
const TEST_FILE_NAME = 'test01.json';
const INPUT_JSON_PATH_1 = `${FETCH_OBJECTS_PATH}/${TEST_FILE_NAME}`;
const inputRequest1 = new Request(INPUT_JSON_PATH_1);
const INPUT_JSON_PATH = `${FETCH_OBJECTS_PATH}/${TEST_FILE_NAME}`;
const inputRequest1 = new Request(INPUT_JSON_PATH);
const done = assert.async();

runScriptlet(name, ['*']);
Expand Down Expand Up @@ -356,8 +356,8 @@ if (!isSupported) {
test('simple fetch -- original response properties are not modified except type', async (assert) => {
const TEST_FILE_NAME = 'test01.json';
const TEST_RESPONSE_TYPE = 'opaque';
const INPUT_JSON_PATH_1 = `${FETCH_OBJECTS_PATH}/${TEST_FILE_NAME}`;
const inputRequest1 = new Request(INPUT_JSON_PATH_1);
const INPUT_JSON_PATH = `${FETCH_OBJECTS_PATH}/${TEST_FILE_NAME}`;
const inputRequest1 = new Request(INPUT_JSON_PATH);
const done = assert.async();

runScriptlet(name, ['*', 'emptyArr', TEST_RESPONSE_TYPE]);
Expand Down

0 comments on commit 68f3b60

Please sign in to comment.