diff --git a/tests/utils/getRegistry.test.js b/tests/utils/getRegistry.test.js index 97e382d5..37f5f33a 100644 --- a/tests/utils/getRegistry.test.js +++ b/tests/utils/getRegistry.test.js @@ -57,7 +57,7 @@ describe('Tests for getRegistry', function() { function reject(err) { expect(err).toBeTruthy(); - expect(err).toBe('Cannot find PodUrl Registry. Using default url.'); + expect(err.message).toBe('Cannot find PodUrl Registry. Using default url.'); done(); }