Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Async-ify the specs #878

Merged
merged 3 commits into from
Apr 13, 2017
Merged

Async-ify the specs #878

merged 3 commits into from
Apr 13, 2017

Conversation

Arcanemagus
Copy link
Member

@Arcanemagus Arcanemagus commented Apr 8, 2017

Bring in the jasmine-fix module and utilize the async compatible beforeEach and it methods it provides. Refactor the code to utilize this instead of the waitsForPromise method from the default
environment.

Includes several fixes to the specs:

  • Introduce a getNotification method to grab the next Notification added to Atom, allowing situations such as waiting on the fix command.
  • Re-write the makeFixes function so it waits on the fix command to finish, including the file changes in Atom before continuing the spec.
  • Make both fix specs use the same functions so the code isn't duplicated.
  • Utilize the lint function directly, using the worker spawned from the activate call instead of a separate one spawned in the specs.

Bring in the `jasmine-fix` module and utilize the `async` compatible
`beforeEach` and `it` methods it provides. Refactor the code to utilize
this instead of the `waitsForPromise` method from the default
environment.

Includes several fixes to the specs:
* Introduce a `getNotification` method to grab the next Notification
  added to Atom, allowing situations such as waiting on the fix command.
* Re-write the `makeFixes` function so it waits on the fix command to
  finish, including the file changes in Atom before continuing the spec.
* Make both fix specs use the same functions so the code isn't
  duplicated.
@IanVS
Copy link
Member

IanVS commented Apr 10, 2017

Utilize the lint function directly, using the worker spawned from the activate call instead of a separate one spawned in the specs.

😻

@Arcanemagus
Copy link
Member Author

Trying closing/reopening this to see if we can wake Travis-CI up...

@Arcanemagus Arcanemagus reopened this Apr 12, 2017
Copy link
Member

@IanVS IanVS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh man, so much nicer!

@Arcanemagus Arcanemagus merged commit 0d8795f into master Apr 13, 2017
@Arcanemagus Arcanemagus deleted the arcanemagus/asyncify-specs branch April 13, 2017 01:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants