From b95bd840d7a7ecb74f3cf1d640410bad8c69fb44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20von=20der=20Gr=C3=BCn?= Date: Mon, 1 Apr 2019 12:02:50 +0200 Subject: [PATCH] Fix failing CordovaError test Fixes #49 --- spec/CordovaError/CordovaError.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/CordovaError/CordovaError.spec.js b/spec/CordovaError/CordovaError.spec.js index 56e3e241..590644d9 100644 --- a/spec/CordovaError/CordovaError.spec.js +++ b/spec/CordovaError/CordovaError.spec.js @@ -34,7 +34,7 @@ describe('CordovaError class', function () { it('Test 003 : toString works', function () { var error003_1 = new CordovaError('error', 0); expect(error003_1.toString(false)).toEqual('error'); - expect(error003_1.toString(true).substring(0, 12)).toEqual('CordovaError'); + expect(error003_1.toString(true)).toContain(error003_1.stack); var error003_2 = new CordovaError('error', 1); expect(error003_2.toString(false)).toEqual('External tool failed with an error: error'); });