Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Tests/AppTests/BlogActionsModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ import Testing
#expect(summaries.map(\.slug) == ["post-2", "post-1"])
#expect(summaries.map(\.published) == [false, true])

let firstSummary = try #require(summaries).first

// Note that we are testing that the first item in this list is the *last* item in the source YAML
// as the init should reverse the order of posts so that they display in reverse chronological order
#expect(firstSummary == BlogActions.Model.PostSummary(
#expect(summaries.first == BlogActions.Model.PostSummary(
slug: "post-2",
title: "Blog post title two",
summary: "Summary of blog post two",
Expand Down
Loading