🤖 Merge PR #48157 k6/http CookieJar is not abstract by @repl-chris

This commit is contained in:
Chris Redekop 2020-09-25 01:28:33 -06:00 committed by GitHub
parent 4da8540811
commit ea2a3d28f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

2
types/k6/http.d.ts vendored
View File

@ -654,7 +654,7 @@ export abstract class FileData {
* Object for storing cookies.
* https://docs.k6.io/docs/cookiejar-k6http
*/
export abstract class CookieJar {
export class CookieJar {
protected __brand: never;
/**

View File

@ -299,6 +299,10 @@ responseText = response.submitForm({
});
response.submitForm({}, 5); // $ExpectError
// CookieJar
jar = new CookieJar();
new CookieJar(5); // $ExpectError
// cookieJar
jar = cookieJar();
cookieJar(5); // $ExpectError