We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6564d1a commit d07441eCopy full SHA for d07441e
Tests/TestSocketIOObjc/ManagerObjectiveCTest.m
@@ -13,9 +13,18 @@ @implementation ManagerObjectiveCTest
13
14
- (void)testSettingConfig {
15
NSURL* url = [[NSURL alloc] initWithString:@"http://localhost"];
16
- self.manager = [[TestManager alloc] initWithSocketURL:url config:@{@"forceNew": @YES}];
+ NSDictionary* headers = @{@"My Header": @"Some Value"};
17
+
18
+ self.manager = [[TestManager alloc] initWithSocketURL:url config:@{
19
+ @"forceNew": @YES,
20
+ @"extraHeaders": headers
21
+ }];
22
23
+ [self.manager connect];
24
25
XCTAssertTrue(self.manager.forceNew);
26
+ XCTAssertTrue([self.manager.engine.extraHeaders isEqualToDictionary:headers]);
27
28
}
29
30
- (void)testManagerProperties {
0 commit comments