Skip to content

Commit

Permalink
prettier to the prettier gods
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Aug 16, 2018
1 parent d60d0b6 commit 30f3ee3
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions tests/integration/records/delete-record-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { attr, hasMany } from '@ember-decorators/data';
import todo from '../../helpers/todo';

class Person extends Model {
@attr name;
@attr
name;

static toString() {
return 'Person';
Expand Down Expand Up @@ -151,7 +152,8 @@ module('integration/deletedRecord - Deleting Records', function(hooks) {

test('We properly unload a record when destroyRecord is called', async function(assert) {
class Group extends Model {
@attr name;
@attr
name;

static toString() {
return 'Group';
Expand Down Expand Up @@ -237,9 +239,7 @@ module('integration/deletedRecord - Deleting Records', function(hooks) {
assert.equal(allPeople.objectAt(0), null, "can't get any records");
});

test('Deleting an invalid newly created record should remove it from the store', async function(
assert
) {
test('Deleting an invalid newly created record should remove it from the store', async function(assert) {
adapter.createRecord = function() {
return reject(
new InvalidError([
Expand Down Expand Up @@ -354,9 +354,7 @@ module('integration/deletedRecord - Deleting Records', function(hooks) {
assert.equal(internalModel.isDestroyed, true, 'The internal model is destroyed');
});

test('Calling save on a newly created then deleted record should not error', async function(
assert
) {
test('Calling save on a newly created then deleted record should not error', async function(assert) {
adapter.createRecord = function() {
assert.ok(false, 'We should not call adapter.createRecord on save');
return resolve({ data: null });
Expand Down Expand Up @@ -404,9 +402,7 @@ module('integration/deletedRecord - Deleting Records', function(hooks) {
await record.save();
});

test('Calling unloadRecord on a newly created then deleted record should not error', async function(
assert
) {
test('Calling unloadRecord on a newly created then deleted record should not error', async function(assert) {
adapter.createRecord = function() {
assert.ok(false, 'We should not call adapter.createRecord on save');
return resolve({ data: null });
Expand Down

0 comments on commit 30f3ee3

Please sign in to comment.