From ca78d03aa4d50946e814c74f8b9f3b27c10eec57 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Thu, 28 Sep 2017 11:47:55 -0400 Subject: [PATCH] Test TypeScript-specific exports --- tests/src/core/getExports.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/src/core/getExports.js b/tests/src/core/getExports.js index c3da17fe7..096ef533a 100644 --- a/tests/src/core/getExports.js +++ b/tests/src/core/getExports.js @@ -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 + }) }) })