We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b48a0bc + 9493586 commit da871e3Copy full SHA for da871e3
Tests/AppTests/BlogActionsModelTests.swift
@@ -50,11 +50,9 @@ import Testing
50
#expect(summaries.map(\.slug) == ["post-2", "post-1"])
51
#expect(summaries.map(\.published) == [false, true])
52
53
- let firstSummary = try #require(summaries).first
54
-
55
// Note that we are testing that the first item in this list is the *last* item in the source YAML
56
// as the init should reverse the order of posts so that they display in reverse chronological order
57
- #expect(firstSummary == BlogActions.Model.PostSummary(
+ #expect(summaries.first == BlogActions.Model.PostSummary(
58
slug: "post-2",
59
title: "Blog post title two",
60
summary: "Summary of blog post two",
0 commit comments