File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Tests/OptimizelyTests-APIs Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,19 @@ class OptimizelyClientTests_ODP: XCTestCase {
187
187
188
188
// MARK: - vuid
189
189
190
- func testVuid( ) {
190
+ func testVuidEnabled( ) {
191
+ let settings = OptimizelySdkSettings ( enabledVuid: true )
192
+ optimizely = OptimizelyClient ( sdkKey: OTUtils . randomSdkKey, settings: settings)
193
+ XCTAssertTrue ( optimizely. enableVuid)
191
194
XCTAssert ( optimizely. vuid. starts ( with: " vuid_ " ) )
192
195
}
193
196
197
+ func testVuidDiabled( ) {
198
+ // Default client vuid diabled
199
+ XCTAssertFalse ( optimizely. enableVuid)
200
+ XCTAssert ( optimizely. vuid. isEmpty)
201
+ }
202
+
194
203
// MARK: - OdpConfig Update
195
204
196
205
func testUpdateOpdConfigCalled_wheneverProjectConfigUpdated_initialOrPolling( ) {
You can’t perform that action at this time.
0 commit comments