Skip to content

Commit

Permalink
[#168] ‘equals’ helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mpugach committed Jan 31, 2017
1 parent 3b7b064 commit 4e086fd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/app/helpers/equals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Ember from 'ember';

export function equals(params) {
return params[0] === params[1];
}

export default Ember.Helper.helper(equals);
12 changes: 12 additions & 0 deletions frontend/tests/unit/helpers/equals-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

import { equals } from 'flaredown/helpers/equals';
import { module, test } from 'qunit';

module('Unit | Helper | equals');

// Replace this with your real tests.
test('it works', function(assert) {
assert.notOk(equals([42]));
assert.ok(equals([42, 42]));
});

0 comments on commit 4e086fd

Please sign in to comment.