Skip to content

Commit 38fb116

Browse files
committed
Reduce the number of assertions
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.
1 parent 40df253 commit 38fb116

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/npm_test.rb

-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ def code() "200" end
101101
@npm.stub(:get_json, response) do
102102
outdated_packages = @npm.outdated_packages
103103

104-
assert_equal(1, outdated_packages.size)
105-
assert_equal('md5', outdated_packages[0].name)
106-
assert_equal('2.2.0', outdated_packages[0].current_version)
107104
assert_equal('version not found', outdated_packages[0].latest_version)
108105
end
109106
end

0 commit comments

Comments
 (0)