Skip to content

Commit d81b8ca

Browse files
committed
test: Remove builder cookie assertions
This functionality was removed in the trunk branch.
1 parent b3d9de2 commit d81b8ca

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ios/Tests/GutenbergKitTests/EditorConfigurationBuilderTests.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ struct EditorConfigurationBuilderTests {
2424
#expect(builder.editorSettings.isEmpty)
2525
#expect(builder.locale == "en")
2626
#expect(builder.editorAssetsEndpoint == nil)
27-
#expect(builder.cookies == [])
2827
}
2928

3029
@Test("Editor Configuration to Builder")
@@ -46,7 +45,6 @@ struct EditorConfigurationBuilderTests {
4645
.setEditorSettings(["foo":"bar"])
4746
.setLocale("fr")
4847
.setEditorAssetsEndpoint(URL(string: "https://example.com/wp-content/plugins/gutenberg/build/"))
49-
.setCookies([HTTPCookie(properties: [.name: "foo", .value: "bar", .domain: "example.com", .path: "/"])!])
5048
.build() // Convert to a configuration
5149
.toBuilder() // Then back to a builder (to test the configuration->builder logic)
5250
.build() // Then back to a configuration to examine the results
@@ -67,7 +65,6 @@ struct EditorConfigurationBuilderTests {
6765
#expect(configuration.editorSettingsJSON == #"{"foo":"bar"}"#)
6866
#expect(configuration.locale == "fr")
6967
#expect(configuration.editorAssetsEndpoint == URL(string: "https://example.com/wp-content/plugins/gutenberg/build/"))
70-
#expect(configuration.cookies == [HTTPCookie(properties: [.name: "foo", .value: "bar", .domain: "example.com", .path: "/"])!])
7168
}
7269

7370
@Test("Sets Title Correctly")
@@ -172,9 +169,4 @@ struct EditorConfigurationBuilderTests {
172169
func editorConfigurationBuilderSetsEditorAssetsEndpointCorrectly() throws {
173170
#expect(EditorConfigurationBuilder().setEditorAssetsEndpoint(URL(string: "https://example.com/wp-content/plugins/gutenberg/build/")).build().editorAssetsEndpoint == URL(string: "https://example.com/wp-content/plugins/gutenberg/build/"))
174171
}
175-
176-
@Test("Sets cookies Correctly")
177-
func editorConfigurationBuilderSetsCookiesCorrectly() throws {
178-
#expect(EditorConfigurationBuilder().setCookies([HTTPCookie(properties: [.name: "foo", .value: "bar", .domain: "example.com", .path: "/"])!]).build().cookies == [HTTPCookie(properties: [.name: "foo", .value: "bar", .domain: "example.com", .path: "/"])!])
179-
}
180172
}

0 commit comments

Comments
 (0)