Newer
Older
dmpopidor / lib / assets / javascripts / spec / autoCompleteSpec.js
@briley briley on 2 Oct 2017 499 bytes added changes back in
import initAutoComplete from '../utils/autoComplete';

describe('autoComplete test suite', () => {
  beforeAll(() => fixture.setBase('javascripts/spec/fixtures'));

  beforeEach(() => {
    $('body').html(fixture.load('autoComplete.html'));
    initAutoComplete();
    // Override the form submission, we are just going to validate the ariatisation of the form
    $('form').submit((e) => { e.preventDefault(); });
  });

  afterEach(() => {
    fixture.cleanup();
    $('body').html('');
  });
});