Skip to content

Commit 6dc3f5f

Browse files
author
Luiz
committed
Use base package name when importing in tests
1 parent fe0ec98 commit 6dc3f5f

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

lit.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
unobserveContext,
77
registerContext,
88
updateContext,
9+
createContext,
910
} from './core.js'
1011

1112
function getFromProperty(provider, property) {
@@ -112,6 +113,6 @@ class ContextProviderDirective extends Directive {
112113
}
113114
}
114115

115-
export const contextProvider = directive(ContextProviderDirective)
116+
const contextProvider = directive(ContextProviderDirective)
116117

117-
export { withContext }
118+
export { withContext, contextProvider, createContext }

test/consumer.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { registerContext, updateContext } from '../core.js'
2-
import { ContextConsumer } from '../consumer.js'
1+
import { registerContext, updateContext } from 'wc-context/core.js'
2+
import { ContextConsumer } from 'wc-context/controllers.js'
33
import { LitElement } from 'lit'
44

55
const ComponentWithConsumer = class extends LitElement {}

test/core.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
createContext,
88
onContextObserve,
99
onContextUnobserve,
10-
} from '../core'
10+
} from 'wc-context/core.js'
1111

1212
describe('context', () => {
1313
let rootEl

test/lit.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-env jest */
2-
import { withContext, contextProvider } from '../lit.js'
2+
import { withContext, contextProvider } from 'wc-context/lit'
33
import { LitElement, html, render } from 'lit'
44

55
const Component = withContext(LitElement)

test/mixin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-env jest */
22
import { LitElement } from 'lit'
3-
import { withContext } from '../wc-context'
3+
import { withContext } from 'wc-context'
44

55
const Component = withContext(HTMLElement)
66
const LitComponent = withContext(LitElement)

test/provider.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { observeContext } from '../core.js'
2-
import { ContextProvider } from '../provider.js'
1+
import { observeContext } from 'wc-context/core.js'
2+
import { ContextProvider } from 'wc-context/controllers.js'
33
import { LitElement } from 'lit'
44

55
const ProviderComponent = class extends LitElement {

0 commit comments

Comments
 (0)