diff --git a/tests/unit/store/asserts-test.js b/tests/unit/store/asserts-test.js index 49c3dd01fa4..5ebaaa5203c 100644 --- a/tests/unit/store/asserts-test.js +++ b/tests/unit/store/asserts-test.js @@ -2,7 +2,7 @@ import {module} from 'qunit'; import testInDebug from 'dummy/tests/helpers/test-in-debug'; import {createStore} from 'dummy/tests/helpers/store'; -module("unit/store/asserts - DS.Store methods produce useful assertion messages"); +module('unit/store/asserts - DS.Store methods produce useful assertion messages'); const MODEL_NAME_METHODS = [ 'createRecord', @@ -23,12 +23,12 @@ const MODEL_NAME_METHODS = [ 'serializerFor' ]; -testInDebug("Calling Store methods with no modelName asserts", function(assert) { +testInDebug('Calling Store methods with no modelName asserts', function(assert) { assert.expect(MODEL_NAME_METHODS.length); let store = createStore(); - MODEL_NAME_METHODS.forEach(function(methodName) { - assert.expectAssertion(function() { + MODEL_NAME_METHODS.forEach(methodName =>{ + assert.expectAssertion(() => { store[methodName](null); }, new RegExp(`You need to pass a model name to the store's ${methodName} method`)); });