Skip to content

Commit

Permalink
clean up PlatformFunctions test
Browse files Browse the repository at this point in the history
  • Loading branch information
anniel-stripe committed Feb 22, 2023
1 parent 06bede5 commit 054eba9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/PlatformFunctions.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict';

require('../testUtils');
const fs = require('fs');
const path = require('path');

import * as fs from 'fs';
import * as path from 'path';

import {FetchHttpClient} from '../lib/net/FetchHttpClient';
import {NodeCryptoProvider} from '../lib/crypto/NodeCryptoProvider';
Expand All @@ -14,8 +15,6 @@ import {SubtleCryptoProvider} from '../lib/crypto/SubtleCryptoProvider';
import {expect} from 'chai';
import {webcrypto} from 'crypto';

let platforms: Record<string, PlatformFunctions>;

if (process.versions.node < '15') {
console.log(
`Skipping WebPlatformFunctions tests. Cannot load WebPlatformFunctions because 'Event' is not available in the global scope for ${process.version}.`
Expand Down

0 comments on commit 054eba9

Please sign in to comment.