Skip to content

Commit

Permalink
test: update endpoint test
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Apr 24, 2020
1 parent 05b7aec commit 1e7922c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clients/client-s3/S3.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ describe("endpoint", () => {
expect(request.protocol).toEqual("http:");
expect(request.hostname).toEqual("localhost");
expect(request.port).toEqual(8080);
expect(request.query).toEqual({ foo: "bar" });
expect(request.path).toEqual("/path");
//query and path should not be overwritten
expect(request.query).not.toContainEqual({ foo: "bar" });
expect(request.path).not.toEqual("/path");
return Promise.resolve({ output: {} as any, response: {} as any });
};
const client = new S3({ endpoint: "http://localhost:8080/path?foo=bar" });
Expand Down

0 comments on commit 1e7922c

Please sign in to comment.