Skip to content

Commit

Permalink
Test TypeScript-specific exports
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 authored and ljharb committed Sep 28, 2017
1 parent 9d6dabd commit ca78d03
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/src/core/getExports.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,25 @@ describe('ExportMap', function () {
expect(imports).property('errors').to.be.empty
})

it('has export (getFoo)', function () {
it('has exported function', function () {
expect(imports.has('getFoo')).to.be.true
})

it('has exported typedef', function () {
expect(imports.has('MyType')).to.be.true
})

it('has exported enum', function () {
expect(imports.has('MyEnum')).to.be.true
})

it('has exported interface', function () {
expect(imports.has('Foo')).to.be.true
})

it('has exported abstract class', function () {
expect(imports.has('Bar')).to.be.true
})
})
})

Expand Down

0 comments on commit ca78d03

Please sign in to comment.