File tree 15 files changed +15
-17
lines changed
packages/pg-query-stream/test
15 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 1
- import QueryStream from '../dist '
1
+ import QueryStream from '../src '
2
2
import pg from 'pg'
3
3
import assert from 'assert'
4
4
Original file line number Diff line number Diff line change 1
1
import pg from 'pg'
2
2
import assert from 'assert'
3
- const QueryStream = require ( '../' )
3
+ import QueryStream from '../src'
4
4
5
5
describe ( 'client options' , function ( ) {
6
6
it ( 'uses custom types from client config' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'assert'
2
2
import concat from 'concat-stream'
3
- import QueryStream from '../'
3
+ import QueryStream from '../src '
4
4
import helper from './helper'
5
5
6
6
if ( process . version . startsWith ( 'v8.' ) ) {
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ import assert from 'assert'
2
2
import concat from 'concat-stream'
3
3
import through from 'through'
4
4
import helper from './helper'
5
-
6
- const QueryStream = require ( '../' )
5
+ import QueryStream from '../src'
7
6
8
7
helper ( 'concat' , function ( client ) {
9
8
it ( 'concats correctly' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'assert'
2
- import QueryStream from '../'
2
+ import QueryStream from '../src '
3
3
4
4
describe ( 'stream config options' , ( ) => {
5
5
// this is mostly for backwards compatibility.
Original file line number Diff line number Diff line change 1
- import assert from 'assert'
2
1
import helper from './helper'
3
- import QueryStream from '../'
2
+ import QueryStream from '../src '
4
3
5
4
helper ( 'empty-query' , function ( client ) {
6
5
it ( 'handles empty query' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'assert'
2
2
import helper from './helper'
3
- import QueryStream from '../'
3
+ import QueryStream from '../src '
4
4
5
5
helper ( 'error' , function ( client ) {
6
6
it ( 'receives error on stream' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'assert'
2
2
import helper from './helper'
3
- import QueryStream from '../'
3
+ import QueryStream from '../src '
4
4
5
5
helper ( 'fast reader' , function ( client ) {
6
6
it ( 'works' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import helper from './helper'
2
2
import assert from 'assert'
3
3
import concat from 'concat-stream'
4
- import QueryStream from '../'
4
+ import QueryStream from '../src '
5
5
6
6
helper ( 'instant' , function ( client ) {
7
7
it ( 'instant' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import pg from 'pg'
2
- import QueryStream from '../'
2
+ import QueryStream from '../src '
3
3
4
4
describe ( 'end semantics race condition' , function ( ) {
5
5
before ( function ( done ) {
Original file line number Diff line number Diff line change 1
1
import assert from 'assert'
2
2
import helper from './helper'
3
- import QueryStream from '../'
3
+ import QueryStream from '../src '
4
4
5
5
helper ( 'passing options' , function ( client ) {
6
6
it ( 'passes row mode array' , function ( done ) {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import helper from './helper'
2
2
import concat from 'concat-stream'
3
3
import tester from 'stream-tester'
4
4
import JSONStream from 'JSONStream'
5
- import QueryStream from '../'
5
+ import QueryStream from '../src '
6
6
7
7
helper ( 'pauses' , function ( client ) {
8
8
it ( 'pauses' , function ( done ) {
Original file line number Diff line number Diff line change 1
1
import helper from './helper'
2
- import QueryStream from '../'
2
+ import QueryStream from '../src '
3
3
import concat from 'concat-stream'
4
4
5
5
import { Transform } from 'stream'
Original file line number Diff line number Diff line change 1
1
import helper from './helper'
2
- import QueryStream from '../'
2
+ import QueryStream from '../src '
3
3
import spec from 'stream-spec'
4
4
import assert from 'assert'
5
5
Original file line number Diff line number Diff line change 1
1
import spec from 'stream-spec'
2
2
import helper from './helper'
3
- import QueryStream from '../'
3
+ import QueryStream from '../src '
4
4
5
5
helper ( 'stream tester' , function ( client ) {
6
6
it ( 'passes stream spec' , function ( done ) {
You can’t perform that action at this time.
0 commit comments