Skip to content

Commit d0c13e1

Browse files
author
myConsciousness
committed
feat: Add test for a single set-cookie
1 parent e5de3ed commit d0c13e1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/response_test.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,15 @@ void main() {
105105
]));
106106
}
107107
});
108+
109+
test('checks a set-cookie', () {
110+
final response = http.Response('', 200, headers: {
111+
'set-cookie':
112+
'AWSALB=AWSALB_TEST; Expires=Tue, 26 Apr 2022 00:26:55 GMT; Path=/'
113+
});
114+
115+
expect(response.cookies.length, 1);
116+
expect(response.cookies[0].name, 'AWSALB');
117+
expect(response.cookies[0].value, 'AWSALB_TEST');
118+
});
108119
}

0 commit comments

Comments
 (0)