Skip to content

Commit

Permalink
cleanup tests/unit/store/has-record-for-id
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Mar 1, 2017
1 parent 53de21b commit 3ebd3db
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tests/unit/store/has-record-for-id-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import {module, test} from 'qunit';

import DS from 'ember-data';

var env, store, Person, PhoneNumber;
var attr = DS.attr;
var hasMany = DS.hasMany;
var belongsTo = DS.belongsTo;
var run = Ember.run;
let env, store, Person, PhoneNumber;
const { attr, hasMany, belongsTo } = DS;
const { run } = Ember;

module("unit/store/hasRecordForId - Store hasRecordForId", {
module('unit/store/hasRecordForId - Store hasRecordForId', {
beforeEach() {

Person = DS.Model.extend({
Expand All @@ -27,7 +25,7 @@ module("unit/store/hasRecordForId - Store hasRecordForId", {

env = setupStore({
person: Person,
"phone-number": PhoneNumber
'phone-number': PhoneNumber
});

store = env.store;
Expand All @@ -39,9 +37,9 @@ module("unit/store/hasRecordForId - Store hasRecordForId", {
}
});

test("hasRecordForId should return false for records in the empty state ", function(assert) {
test('hasRecordForId should return false for records in the empty state ', function(assert) {

run(function() {
run(() => {
store.push({
data: {
type: 'person',
Expand All @@ -65,8 +63,8 @@ test("hasRecordForId should return false for records in the empty state ", funct
});
});

test("hasRecordForId should return true for records in the loaded state ", function(assert) {
run(function() {
test('hasRecordForId should return true for records in the loaded state ', function(assert) {
run(() => {
store.push({
data: {
type: 'person',
Expand Down

0 comments on commit 3ebd3db

Please sign in to comment.