Skip to content

Commit

Permalink
Reduce the number of assertions
Browse files Browse the repository at this point in the history
We only care to assert on the `latest_version` since this is what we care about. Can revert the change if it is desired to assert the rest.
  • Loading branch information
vietqhoang committed Feb 14, 2024
1 parent 40df253 commit 38fb116
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/npm_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ def code() "200" end
@npm.stub(:get_json, response) do
outdated_packages = @npm.outdated_packages

assert_equal(1, outdated_packages.size)
assert_equal('md5', outdated_packages[0].name)
assert_equal('2.2.0', outdated_packages[0].current_version)
assert_equal('version not found', outdated_packages[0].latest_version)
end
end
Expand Down

0 comments on commit 38fb116

Please sign in to comment.