Skip to content

Commit

Permalink
chore: lint corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jun 19, 2024
1 parent 4654169 commit 2fb19fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
9 changes: 3 additions & 6 deletions test/consumer.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const { expect } = chai;

const HOST = '127.0.0.1';


describe('FFI integration test for the HTTP Consumer API', () => {
setLogLevel('trace');

Expand Down Expand Up @@ -188,10 +187,7 @@ describe('FFI integration test for the HTTP Consumer API', () => {
interaction.withRequest('POST', '/dogs/1234');
interaction.withRequestHeader('x-special-header', 0, 'header');
interaction.withQuery('someParam', 0, 'someValue');
interaction.withRequestBinaryBody(
bytes,
'application/gzip'
);
interaction.withRequestBinaryBody(bytes, 'application/gzip');
interaction.withResponseBody(
JSON.stringify({
name: like('fido'),
Expand Down Expand Up @@ -320,7 +316,8 @@ describe('FFI integration test for the HTTP Consumer API', () => {
pact.cleanupMockServer(port);
});
});
});
}
);

describe('with multipart data', () => {
const form = new FormData();
Expand Down
8 changes: 3 additions & 5 deletions test/message.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ describe('FFI integration test for the Message Consumer API', () => {
message.expectsToReceive('a binary event');
message.given('some state');
message.givenWithParam('some state 2', 'state2 key', 'state2 val');
message.withBinaryContents(
bytes,
'application/gzip'
);
message.withBinaryContents(bytes, 'application/gzip');
message.withMetadata('meta-key', 'meta-val');

const reified = message.reifyMessage();
Expand Down Expand Up @@ -197,6 +194,7 @@ describe('FFI integration test for the Message Consumer API', () => {

pact.writePactFile(path.join(__dirname, '__testoutput__'));
});
});
}
);
});
});
3 changes: 2 additions & 1 deletion test/plugin-verifier.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ const skipPluginTests = process.env['SKIP_PLUGIN_TESTS'] === 'true';
});
});
});
});
}
);

0 comments on commit 2fb19fe

Please sign in to comment.