From 0c815603a7bc7b3136b57d7415d7c2f5c05863fe Mon Sep 17 00:00:00 2001 From: MiniPear Date: Tue, 29 Aug 2023 14:53:01 +0800 Subject: [PATCH] fix(libs): export expected libs --- __tests__/unit/lib/lib.spec.ts | 19 +++++++++++++++++++ src/index.ts | 10 +++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 __tests__/unit/lib/lib.spec.ts diff --git a/__tests__/unit/lib/lib.spec.ts b/__tests__/unit/lib/lib.spec.ts new file mode 100644 index 0000000000..d8f076d678 --- /dev/null +++ b/__tests__/unit/lib/lib.spec.ts @@ -0,0 +1,19 @@ +import { + stdlib, + corelib, + plotlib, + geolib, + threedlib, + graphlib, +} from '../../../src'; + +describe('libs', () => { + it('should export expected lib.', () => { + expect(stdlib).toBeDefined(); + expect(corelib).toBeDefined(); + expect(plotlib).toBeDefined(); + expect(geolib).toBeDefined(); + expect(threedlib).toBeDefined(); + expect(graphlib).toBeDefined(); + }); +}); diff --git a/src/index.ts b/src/index.ts index 7ff78ec4b8..597e3d85e8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,15 @@ export { AREA_CLASS_NAME, } from './runtime'; -export { corelib, stdlib, litelib, threedlib } from './lib'; +export { + corelib, + stdlib, + litelib, + graphlib, + plotlib, + geolib, + threedlib, +} from './lib'; export * from './mark';