From 38fb11631709e44f7a850dd5717cb527355420d7 Mon Sep 17 00:00:00 2001 From: Viet Hoang <1300077+vietqhoang@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:48:43 -0800 Subject: [PATCH] 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. --- test/npm_test.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/npm_test.rb b/test/npm_test.rb index 66dc484..a53f8b0 100644 --- a/test/npm_test.rb +++ b/test/npm_test.rb @@ -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