Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Mar 4, 2020
1 parent c9b663b commit dd972be
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 dd972be

Please sign in to comment.