Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Feb 29, 2020
1 parent 9361722 commit 37f4dec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,15 @@ test('strict options', withServer, async (t, server, got) => {

t.is(body, '/');
});

test('does not throw on frozen options', withServer, async (t, server, got) => {
server.get('/', echoUrl);

const options: StrictOptions = {};

Object.freeze(options);

const {body} = await got(options);

t.is(body, '/');
});

0 comments on commit 37f4dec

Please sign in to comment.