Skip to content

Instantly share code, notes, and snippets.

@Arcath
Created December 9, 2014 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arcath/cb6d9a699abb6e59c3a4 to your computer and use it in GitHub Desktop.
Save Arcath/cb6d9a699abb6e59c3a4 to your computer and use it in GitHub Desktop.
path = require 'path'
fs = require 'fs-plus'
temp = require 'temp'
describe 'Jekyll', ->
describe 'before Activation', ->
it 'should be in the packages list', ->
expect(atom.packages.loadedPackages["jekyll"]).toBeDefined()
describe 'in Atom', ->
[workspaceElement, editorView, editor] = []
beforeEach ->
directory = temp.mkdirSync()
atom.project.setPaths([directory])
workspaceElement = atom.views.getView(atom.workspace)
editor = atom.workspace.getActiveTextEditor()
editorView = atom.views.getView(editor)
waitsForPromise ->
atom.packages.activatePackage('jekyll')
it 'should have activated', ->
expect(atom.packages.isPackageActive('jekyll')).toBe true
describe 'when the toolbar is opened', ->
it 'should put the toolbar in the bottom panel', ->
atom.commands.dispatch editorView, 'jekyll:toolbar'
runs ->
expect(workspaceElement.querySelector('.jekyll-manager-panel')).toBeDefined()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment