Skip to content

Commit

Permalink
test: updated tests in TransactionStoreSpec to cancel any previous tr…
Browse files Browse the repository at this point in the history
…ansaction when a new transaction is added
  • Loading branch information
desusai7 committed May 6, 2024
1 parent 737b6b1 commit b8aa270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Auth0Tests/TransactionStoreSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class TransactionStoreSpec: QuickSpec {
expect(storage.current).to(beNil())
}

it("should not cancel current transaction") {
it("should cancel previous transaction when new transaction is added to store") {
storage.store(transaction)
storage.store(SpyTransaction())
expect(transaction.isCancelled) == false
expect(transaction.isCancelled) == true
}
}

Expand Down

0 comments on commit b8aa270

Please sign in to comment.