From e85c4b31b0073834a7e9f264aa10c501c4022be8 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Sat, 23 Sep 2023 14:51:54 +0530 Subject: [PATCH] test: fix breaking tests --- test/youch.spec.js | 14 +------------- test/youch.spec.mjs | 14 +------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/test/youch.spec.js b/test/youch.spec.js index 27a130c..fb99947 100644 --- a/test/youch.spec.js +++ b/test/youch.spec.js @@ -97,18 +97,6 @@ test.group('Youch', () => { .catch(done) }) - test('return active class when index is 0', (assert) => { - const error = new Error('this is bar') - const youch = new Youch(error, {}) - const frame = { - isApp: true, - getFileName: () => './hello.js' - } - - const classes = youch._getDisplayClasses(frame, 0) - assert.equal(classes, 'active') - }) - test('return native frame class when frame is native', (assert) => { const error = new Error('this is bar') const youch = new Youch(error, {}) @@ -118,7 +106,7 @@ test.group('Youch', () => { } const classes = youch._getDisplayClasses(frame, 0) - assert.equal(classes, 'active native-frame') + assert.deepEqual(classes, ['native-frame']) }) test('find if frame is a node_module or not', (assert) => { diff --git a/test/youch.spec.mjs b/test/youch.spec.mjs index 3d78054..ac20fa5 100644 --- a/test/youch.spec.mjs +++ b/test/youch.spec.mjs @@ -102,18 +102,6 @@ test.group('Youch | ESM', () => { .catch(done) }) - test('return active class when index is 0', (assert) => { - const error = new Error('this is bar') - const youch = new Youch(error, {}) - const frame = { - isApp: true, - getFileName: () => './hello.js' - } - - const classes = youch._getDisplayClasses(frame, 0) - assert.equal(classes, 'active') - }) - test('return native frame class when frame is native', (assert) => { const error = new Error('this is bar') const youch = new Youch(error, {}) @@ -123,7 +111,7 @@ test.group('Youch | ESM', () => { } const classes = youch._getDisplayClasses(frame, 0) - assert.equal(classes, 'active native-frame') + assert.deepEqual(classes, ['native-frame']) }) test('find if frame is a node_module or not', (assert) => {