25 lines
608 B
Swift
25 lines
608 B
Swift
//
|
|
// Copyright Amazon.com Inc. or its affiliates.
|
|
// All Rights Reserved.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
import XCTest
|
|
@testable import AWSS3StoragePlugin
|
|
|
|
class AWSS3StoragePluginResetTests: AWSS3StoragePluginTests {
|
|
|
|
func testReset() {
|
|
let completedInvoked = expectation(description: "onComplete is invoked")
|
|
storagePlugin.reset {
|
|
completedInvoked.fulfill()
|
|
}
|
|
|
|
waitForExpectations(timeout: 1)
|
|
XCTAssertNil(storagePlugin.authService)
|
|
XCTAssertNil(storagePlugin.storageService)
|
|
XCTAssertNil(storagePlugin.queue)
|
|
}
|
|
}
|