minor fix

pull/1023/head
Ryan ZHAO 1 year ago
parent e790fa4519
commit 8e98fc121d

@ -40,8 +40,8 @@ class SessionThreadViewModelSpec: QuickSpec {
// MARK: ---- standardises odd quote characters // MARK: ---- standardises odd quote characters
it("standardises odd quote characters") { it("standardises odd quote characters") {
expect(SessionThreadViewModel.standardQuotes("\"")).to(equal("\"")) expect(SessionThreadViewModel.standardQuotes("\"")).to(equal("\""))
expect(SessionThreadViewModel.standardQuotes(""")).to(equal("\"")) expect(SessionThreadViewModel.standardQuotes("")).to(equal("\""))
expect(SessionThreadViewModel.standardQuotes(""")).to(equal("\"")) expect(SessionThreadViewModel.standardQuotes("")).to(equal("\""))
} }
// MARK: ---- splits on the space character // MARK: ---- splits on the space character
@ -100,7 +100,7 @@ class SessionThreadViewModelSpec: QuickSpec {
// MARK: ---- keeps words within weird quotes together // MARK: ---- keeps words within weird quotes together
it("keeps words within weird quotes together") { it("keeps words within weird quotes together") {
expect(SessionThreadViewModel.searchTermParts("This "is a Test" Message")) expect(SessionThreadViewModel.searchTermParts("This \"is a Test\" Message"))
.to(equal([ .to(equal([
"\"This\"", "\"This\"",
"\"is a Test\"", "\"is a Test\"",

Loading…
Cancel
Save