Skip to content

Commit

Permalink
Export InnerTemplatePart
Browse files Browse the repository at this point in the history
Add an entry to the `src/index.ts` to export the new
`InnerTemplatePart`.

Since consumers are most likely to import `TemplateInstance`, change the
`test/template-instance.ts` test file to import properties from the
module in a way that more closely resembles the end-user consumer
experience.
  • Loading branch information
seanpdoyle committed Dec 14, 2024
1 parent 187af82 commit 8e84757
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export {TemplateInstance} from './template-instance.js'
export {parse} from './template-string-parser.js'
export {AttributeTemplatePart, AttributeValueSetter} from './attribute-template-part.js'
export {InnerTemplatePart} from './inner-template-part.js'
export {NodeTemplatePart} from './node-template-part.js'
export {
createProcessor,
Expand Down
12 changes: 8 additions & 4 deletions test/template-instance.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import {expect} from '@open-wc/testing'
import {TemplateInstance} from '../src/template-instance'
import {NodeTemplatePart} from '../src/node-template-part'
import {InnerTemplatePart} from '../src/inner-template-part'
import {processPropertyIdentity, propertyIdentityOrBooleanAttribute, createProcessor} from '../src/processors'
import {
TemplateInstance,
NodeTemplatePart,
InnerTemplatePart,
processPropertyIdentity,
propertyIdentityOrBooleanAttribute,
createProcessor,
} from '../src/index'

describe('template-instance', () => {
it('applies data to templated text nodes', () => {
Expand Down

0 comments on commit 8e84757

Please sign in to comment.