Skip to content

Commit

Permalink
test: extend party aggregation assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Apr 29, 2020
1 parent 82a9d0a commit dc7b3d7
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions test/unit/party.aggregations.spec.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { expect } from '@lykmapipo/test-helpers';

import { PARTY_BASE_METRIC_FIELDS, getPartyBaseAggregation } from '../../src';
import {
PARTY_BASE_METRIC_FIELDS,
PARTY_BASE_LEVEL_PROJECTION,
PARTY_BASE_AREA_PROJECTION,
PARTY_BASE_GROUP_PROJECTION,
PARTY_BASE_ROLE_PROJECTION,
PARTY_BASE_PROJECTION,
getPartyBaseAggregation,
} from '../../src';

describe('Party Aggregations', () => {
it('should have flag metric fields', () => {
it('should have base metric fields', () => {
expect(PARTY_BASE_METRIC_FIELDS).to.exist.and.be.an('object');
expect(PARTY_BASE_METRIC_FIELDS.metrics).to.exist.and.be.an('object');
expect(PARTY_BASE_METRIC_FIELDS.metrics.focal).to.exist.and.be.an('object');
Expand All @@ -15,6 +23,26 @@ describe('Party Aggregations', () => {
);
});

it('should have base level projection', () => {
expect(PARTY_BASE_LEVEL_PROJECTION).to.exist.and.be.an('object');
});

it('should have base area projection', () => {
expect(PARTY_BASE_AREA_PROJECTION).to.exist.and.be.an('object');
});

it('should have base group projection', () => {
expect(PARTY_BASE_GROUP_PROJECTION).to.exist.and.be.an('object');
});

it('should have base role projection', () => {
expect(PARTY_BASE_ROLE_PROJECTION).to.exist.and.be.an('object');
});

it('should have base projection', () => {
expect(PARTY_BASE_PROJECTION).to.exist.and.be.an('object');
});

it('should expose base factory', () => {
expect(getPartyBaseAggregation).to.exist.and.be.a('function');
});
Expand Down

0 comments on commit dc7b3d7

Please sign in to comment.