Skip to content

Commit

Permalink
remove pool from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DurstDog87 committed Jul 5, 2024
1 parent d7db688 commit 2ab0e2f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/__tests__/tileServer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { describe, expect, test } from '@jest/globals';
import { Pool } from 'pg';
import { Tileserver } from '../index';

const gPool = new Pool();

describe('test Tileserver class internals', () => {
test('constructor', () => {
const testClass = new Tileserver(gPool);
const testClass = new Tileserver();
expect(testClass.srid).toStrictEqual(4269);
expect(testClass.extent).toStrictEqual(4096);
expect(testClass.buffer).toStrictEqual(256);
Expand All @@ -16,7 +13,7 @@ describe('test Tileserver class internals', () => {
});

test('setters', () => {
const testClass = new Tileserver(gPool);
const testClass = new Tileserver();
testClass.setQuery('SELECT * FROM foo.bar;');
testClass.setSrid(4326);
expect(testClass.queryString).toBe('SELECT * FROM foo.bar;');
Expand Down

0 comments on commit 2ab0e2f

Please sign in to comment.