Skip to content

Commit

Permalink
Add unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmandar committed Feb 12, 2020
1 parent 0b37eb2 commit 402288c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions FirebaseRemoteConfig/Tests/Unit/RCNUserDefaultsManagerTests.m
Expand Up @@ -170,4 +170,14 @@ - (void)testUserDefaultsForMultipleNamespaces {
RCNUserDefaultsSampleTimeStamp - 2.0);
}

- (void)testUserDefaultsReset {
RCNUserDefaultsManager* manager =
[[RCNUserDefaultsManager alloc] initWithAppName:@"TESTING"
bundleID:[NSBundle mainBundle].bundleIdentifier
namespace:@"testNamespace1"];
[manager setLastETag:@"testETag"];
[manager resetUserDefaults];
XCTAssertNil([manager lastETag]);
}

@end

0 comments on commit 402288c

Please sign in to comment.