Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Add model unit test for medication (#873)
Browse files Browse the repository at this point in the history
- Add model unit test for medication
  • Loading branch information
mkly authored and jkleinsc committed Dec 15, 2016
1 parent e994063 commit 37c9055
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/unit/models/medication-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { moduleForModel, test } from 'ember-qunit';

moduleForModel('medication', 'Unit | Model | medication', {
needs: [
'model:inventory',
'model:patient',
'model:visit'
]
});

test('isRequested', function(assert) {
let medication = this.subject({ status: 'Requested' });

assert.strictEqual(medication.get('isRequested'), true);
});

test('isRequested false', function(assert) {
let medication = this.subject({ status: 'Test' });

assert.strictEqual(medication.get('isRequested'), false);
});

0 comments on commit 37c9055

Please sign in to comment.