Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 20, 2021
1 parent 33d050f commit 812751f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1792,12 +1792,20 @@ describe('Base', () => {
});

it("should return namespace as uniqueBy when unique is 'namespace'", function () {
const gen = new Base([], {unique: 'namespace', namespace: 'foo', env: this.env});
const gen = new Base([], {
unique: 'namespace',
namespace: 'foo',
env: this.env
});
assert.equal(gen.getFeatures().uniqueBy, 'foo');
});

it("should return namespace with first argument as uniqueBy when unique is 'namespace'", function () {
const gen = new Base(['bar'], {unique: 'argument', namespace: 'foo', env: this.env});
const gen = new Base(['bar'], {
unique: 'argument',
namespace: 'foo',
env: this.env
});
assert.equal(gen.getFeatures().uniqueBy, 'foo#bar');
});
});
Expand Down

0 comments on commit 812751f

Please sign in to comment.