Skip to content

Commit

Permalink
disable all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 28, 2025
1 parent b125e2c commit 8d13dff
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/printer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
*/

import test from 'node:test'
import { assert } from 'chai'
// import { assert } from 'chai'
// import { expect } from 'expect'
import { ErrorsPrinter } from '../src/printer.js'
console.log(ErrorsPrinter)

test.describe('Errors printer', () => {
test('print assert error', async () => {
try {
assert.equal(2 + 2, 5)
} catch (error) {
await new ErrorsPrinter().printError(error)
console.log('PARSED')
console.log(await new ErrorsPrinter().parseError(error))
}
})

// test('print assert error', async () => {
// try {
// assert.equal(2 + 2, 5)
// } catch (error) {
// await new ErrorsPrinter().printError(error)
// console.log('PARSED')
// console.log(await new ErrorsPrinter().parseError(error))
// }
// })
// test('print expect error', async () => {
// try {
// expect(2 + 2).toEqual(5)
Expand All @@ -32,7 +32,6 @@ test.describe('Errors printer', () => {
// console.log(await new ErrorsPrinter({}).parseError(error))
// }
// })

// test('print error object', async () => {
// await new ErrorsPrinter({}).printError(new Error('Something went wrong'))
// console.log('PARSED')
Expand Down

0 comments on commit 8d13dff

Please sign in to comment.