Skip to content

Commit

Permalink
Used Poller from dwn-sdk-js
Browse files Browse the repository at this point in the history
  • Loading branch information
thehenrytsai committed Jul 6, 2024
1 parent 022d4a0 commit a759239
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 56 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"url": "https://github.com/TBD54566975/dwn-server/issues"
},
"dependencies": {
"@tbd54566975/dwn-sdk-js": "0.4.0",
"@tbd54566975/dwn-sdk-js": "0.4.2",
"@tbd54566975/dwn-sql-store": "0.6.1",
"better-sqlite3": "^8.5.0",
"body-parser": "^1.20.2",
Expand Down
46 changes: 0 additions & 46 deletions tests/poller.ts

This file was deleted.

8 changes: 4 additions & 4 deletions tests/process-handler.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { expect } from 'chai';
import sinon from 'sinon';
import type { Dwn } from '@tbd54566975/dwn-sdk-js';

import sinon from 'sinon';
import { config } from '../src/config.js';
import type { Dwn } from '@tbd54566975/dwn-sdk-js';
import { DwnServer } from '../src/dwn-server.js';
import { expect } from 'chai';
import { getTestDwn } from './test-dwn.js';
import { Poller } from './poller.js';
import { Poller } from '@tbd54566975/dwn-sdk-js';

describe('Process Handlers', function () {
let dwn: Dwn;
Expand Down
2 changes: 1 addition & 1 deletion tests/scenarios/web5-connect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import sinon from 'sinon';
import { config } from '../../src/config.js';
import { DwnServer } from '../../src/dwn-server.js';
import { expect } from 'chai';
import { Poller } from '@tbd54566975/dwn-sdk-js';
import { useFakeTimers } from 'sinon';
import { Web5ConnectServer } from '../../src/web5-connect/web5-connect-server.js';
import { randomUUID, webcrypto } from 'node:crypto';
import { Poller } from '../poller.js';

// node.js 18 and earlier needs globalThis.crypto polyfill
if (!globalThis.crypto) {
Expand Down

0 comments on commit a759239

Please sign in to comment.