Skip to content

Commit

Permalink
fix: check literal sources list only in test
Browse files Browse the repository at this point in the history
The literal sources list is the only bit that interests us in this test. Based
on that premise, test that this piece in the actual result is equal to what we
expected it to be.
  • Loading branch information
stormqueen1990 committed Oct 29, 2023
1 parent 6addb66 commit 15b25c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func TestUpdateLiteralSources(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
tc.wantErr(t, UpdateLiteralSources(tc.args, tc.flags))
require.Equal(t, tc.expectedArgs, tc.args)
require.Equal(t, tc.expectedArgs.LiteralSources, tc.args.LiteralSources)
})
}
}

0 comments on commit 15b25c6

Please sign in to comment.