Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 13, 2017
1 parent affdef6 commit b043ce1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import expect from 'expect.js';
import makeNestedLabel from 'ui/agg_types/metrics/lib/make_nested_label';
import { makeNestedLabel } from 'ui/agg_types/metrics/lib/make_nested_label';

describe('metric agg make_nested_label', function () {

Expand All @@ -15,19 +15,19 @@ describe('metric agg make_nested_label', function () {

it('should return a metric label with prefix', function () {
const aggConfig = generateAggConfig('Count');
const label = makeNestedLabel(aggConfig, 'derivative of');
const label = makeNestedLabel(aggConfig, 'derivative');
expect(label).to.eql('Derivative of Count');
});

it('should return a numbered prefix', function () {
const aggConfig = generateAggConfig('Derivative of Count');
const label = makeNestedLabel(aggConfig, 'derivative of');
const label = makeNestedLabel(aggConfig, 'derivative');
expect(label).to.eql('2. derivative of Count');
});

it('should return a prefix with correct order', function () {
const aggConfig = generateAggConfig('3. derivative of Count');
const label = makeNestedLabel(aggConfig, 'derivative of');
const label = makeNestedLabel(aggConfig, 'derivative');
expect(label).to.eql('4. derivative of Count');
});

Expand Down

0 comments on commit b043ce1

Please sign in to comment.