<commit_before>import { mockFindAll, mockDelete } from 'ember-data-factory-guy';
import moduleForAcceptance from '../helpers/module-for-acceptance';

moduleForAcceptance('Acceptance | Users Delete');
// NOTE
// FactoryGuy before and after setup is in moduleForAcceptance helper

test("Deleting a user", function () {
  mockFindAll('user', 2);
  visit('/users');

  andThen(()=> {
    mockDelete('user', '1');
    click('li.user:first button');
  });

  andThen(()=>{
    let users = find('li.user');
    ok(users.length === 1);
  });
});<commit_msg>doc updates<commit_after>import { mockFindAll, mockDelete } from 'ember-data-factory-guy';
import moduleForAcceptance from '../helpers/module-for-acceptance';

moduleForAcceptance('Acceptance | Users Delete');
// NOTE
// FactoryGuy before and after setup is in moduleForAcceptance helper

test("Deleting a user", function () {
  mockFindAll('user', 2);
  visit('/users');

  andThen(()=> {
    ok(find('li.user').length === 2);
    mockDelete('user', '1');
    click('li.user:first button');
  });

  andThen(()=>{
    ok(find('li.user').length === 1);
  });
});
{'fraction_non_alphanumeric': 0.18901890189018902, 'fraction_numerical': 0.0063006300630063005, 'mean_word_length': 4.424390243902439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1543518', 'n_tokens_mistral': 358, 'n_tokens_neox': 346, 'n_words': 80}