From 379d2d163382d34d1d1fa44fe892a1c172169344 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Wed, 22 Jul 2015 16:46:36 -0700 Subject: [PATCH] feat(index): add index module which requires commonjs build Closes #117 --- index.js | 1 + spec/root-module-spec.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 index.js create mode 100644 spec/root-module-spec.js diff --git a/index.js b/index.js new file mode 100644 index 0000000000..6d5f0d5d2e --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/cjs/RxNext'); diff --git a/spec/root-module-spec.js b/spec/root-module-spec.js new file mode 100644 index 0000000000..a8f6936a65 --- /dev/null +++ b/spec/root-module-spec.js @@ -0,0 +1,8 @@ +/* globals describe, it, expect */ +var RxNext = require('../index'); + +describe('Root Module', function () { + it('should contain exports from commonjs modules', function () { + expect(typeof RxNext.Observable).toBe('function'); + }); +});