Skip to content
This repository has been archived by the owner on Sep 27, 2018. It is now read-only.

Commit

Permalink
Don't use JavaScript grammar in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunsfeld committed Sep 5, 2018
1 parent add8170 commit cce1438
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/link-spec.js
Expand Up @@ -5,7 +5,6 @@ const {it, fit, ffit, afterEach, beforeEach} = require('./async-spec-helpers') /
describe('link package', () => {
beforeEach(async () => {
await atom.packages.activatePackage('language-gfm')
await atom.packages.activatePackage('language-javascript')
await atom.packages.activatePackage('language-hyperlink')

const activationPromise = atom.packages.activatePackage('link')
Expand All @@ -15,7 +14,7 @@ describe('link package', () => {

describe('when the cursor is on a link', () => {
it("opens the link using the 'open' command", async () => {
await atom.workspace.open('sample.js')
await atom.workspace.open('sample.md')

const editor = atom.workspace.getActiveTextEditor()
editor.setText('// "http://github.com"')
Expand Down Expand Up @@ -78,7 +77,7 @@ you should not [click][her]
)

it('does not open non http/https links', async () => {
await atom.workspace.open('sample.js')
await atom.workspace.open('sample.txt')

const editor = atom.workspace.getActiveTextEditor()
editor.setText('// ftp://github.com\n')
Expand Down

0 comments on commit cce1438

Please sign in to comment.