Skip to content

Commit

Permalink
test: fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 23, 2023
1 parent ad9c693 commit e85c4b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
14 changes: 1 addition & 13 deletions test/youch.spec.js
Expand Up @@ -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, {})
Expand All @@ -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) => {
Expand Down
14 changes: 1 addition & 13 deletions test/youch.spec.mjs
Expand Up @@ -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, {})
Expand All @@ -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) => {
Expand Down

0 comments on commit e85c4b3

Please sign in to comment.