Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
TASK: Expose API
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Feb 13, 2016
1 parent 1559105 commit 0051862
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import projections from './projections/index.js';

export default Object.assign(
{},
projections
);
17 changes: 17 additions & 0 deletions src/index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {expect} from 'chai';

import api from './index.js';

describe('API', () => {
describe('Projections', () => {
it('$get', () => {
expect(api.$get).to.be.a('function');
});
it('$map', () => {
expect(api.$map).to.be.a('function');
});
it('$count', () => {
expect(api.$count).to.be.a('function');
});
});
});
9 changes: 9 additions & 0 deletions src/projections/atoms/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import $get from './get/index.js';
import $map from './get/index.js';
import $count from './get/index.js';

export default {
$get,
$map,
$count
};
6 changes: 6 additions & 0 deletions src/projections/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import atoms from './atoms/index.js';

export default Object.assign(
{},
atoms
);

0 comments on commit 0051862

Please sign in to comment.