1*2789cf82SWill Schurman // Copyright (c) 2020 650 Industries, Inc. All rights reserved. 2*2789cf82SWill Schurman 3*2789cf82SWill Schurman import ExpoModulesTestCore 4*2789cf82SWill Schurman 5*2789cf82SWill Schurman @testable import EXUpdates 6*2789cf82SWill Schurman 7*2789cf82SWill Schurman class CodeSigningAlgorithmSpec : ExpoSpec { specnull8*2789cf82SWill Schurman override func spec() { 9*2789cf82SWill Schurman it("parses code signing algorithm") { 10*2789cf82SWill Schurman expect(try CodeSigningAlgorithm.parseFromString(nil)) == CodeSigningAlgorithm.RSA_SHA256 11*2789cf82SWill Schurman expect(try CodeSigningAlgorithm.parseFromString("rsa-v1_5-sha256")) == CodeSigningAlgorithm.RSA_SHA256 12*2789cf82SWill Schurman expect { try CodeSigningAlgorithm.parseFromString("invalid") }.to(throwError(CodeSigningError.AlgorithmParseError)) 13*2789cf82SWill Schurman } 14*2789cf82SWill Schurman } 15*2789cf82SWill Schurman } 16