solid-logic 1.3.16-8afe9dc4 → 1.3.17-0abe2b84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
1
  import { error, log, trace, warn } from '../../src/util/debug'
2
2
  import fetchMock from "jest-fetch-mock";
3
+ import { TextEncoder, TextDecoder } from 'util'
4
+ global.TextEncoder = TextEncoder
5
+ global.TextDecoder = TextDecoder
3
6
 
4
7
  fetchMock.enableMocks();
5
8
  // We don't want to output debug messages to console as part of the tests
@@ -20,12 +20,13 @@ describe('loadTypeIndexes', () => {
20
20
  it('exists', () => {
21
21
  expect(typeIndexLogic.loadTypeIndexes).toBeInstanceOf(Function)
22
22
  })
23
- it('runs', () => {
24
- expect(typeIndexLogic.loadTypeIndexes({})).toBeInstanceOf(Object)
23
+ it.skip('runs', async () => {
24
+ const result = await typeIndexLogic.loadTypeIndexes({})
25
+ expect(result).toBeInstanceOf(Object)
25
26
  })
26
27
  })
27
28
 
28
- describe('registerInTypeIndex', () => {
29
+ describe('registerInTypeIndex', () => {
29
30
  it('exists', () => {
30
31
  expect(typeIndexLogic.registerInTypeIndex).toBeInstanceOf(Function)
31
32
  })
@@ -38,4 +39,4 @@ describe('registerInTypeIndex', () => {
38
39
  )).rejects
39
40
  .toThrow('@@ ensureLoadedPreferences: no user specified')
40
41
  })
41
- })
42
+ })