Skip to content

Commit

Permalink
refactor: remove eol
Browse files Browse the repository at this point in the history
  • Loading branch information
aldis-ameriks committed Aug 12, 2023
1 parent 7063dd2 commit 2cab7c2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
27 changes: 13 additions & 14 deletions cjs/test/cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const childProcess = require('node:child_process')
const fs = require('node:fs')
const path = require('node:path')
const eol = require('eol')
const { test, only } = require('tap')
const { getTestPostgresConnectionString } = require('./helpers/setup-postgres.js')

Expand All @@ -24,7 +23,7 @@ test('help', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -46,7 +45,7 @@ test('version', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -66,7 +65,7 @@ test('missing connection string', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -86,7 +85,7 @@ test('generates types stdout', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand Down Expand Up @@ -144,7 +143,7 @@ test('generates types with exclusion', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -164,7 +163,7 @@ test('generates types with header', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -184,7 +183,7 @@ test('generates types with pascal case enums', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -204,7 +203,7 @@ test('generates types with noSemi option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -224,7 +223,7 @@ test('generates types with no-semicolons option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -244,7 +243,7 @@ test('generates types with bigint option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -264,7 +263,7 @@ test('generates types with types option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -284,7 +283,7 @@ test('generates types with insert types', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -304,7 +303,7 @@ test('generates table names', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"postgres": "^3.3.5"
},
"devDependencies": {
"eol": "^0.9.1",
"standard": "^17.1.0",
"tap": "^16.3.6",
"tsd": "^0.28.1"
Expand Down
27 changes: 13 additions & 14 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import childProcess from 'node:child_process'
import fs from 'node:fs'
import url from 'node:url'
import path from 'node:path'
import eol from 'eol'
import { test, only } from 'tap'
import { getTestPostgresConnectionString } from './helpers/setup-postgres.js'

Expand All @@ -27,7 +26,7 @@ test('help', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -49,7 +48,7 @@ test('version', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -69,7 +68,7 @@ test('missing connection string', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -89,7 +88,7 @@ test('generates types stdout', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand Down Expand Up @@ -147,7 +146,7 @@ test('generates types with exclusion', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -167,7 +166,7 @@ test('generates types with header', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -187,7 +186,7 @@ test('generates types with pascal case enums', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -207,7 +206,7 @@ test('generates types with noSemi option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -227,7 +226,7 @@ test('generates types with no-semicolons option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -247,7 +246,7 @@ test('generates types with bigint option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -267,7 +266,7 @@ test('generates types with types option', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -287,7 +286,7 @@ test('generates types with insert types', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand All @@ -307,7 +306,7 @@ test('generates table names', t => {
})

child.on('close', () => {
t.matchSnapshot(eol.lf(result.data))
t.matchSnapshot(result.data)
})
})

Expand Down

0 comments on commit 2cab7c2

Please sign in to comment.