Skip to content

Commit

Permalink
Use relative path to node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 1, 2021
1 parent 234a60d commit 6ca5b67
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion spec/jasmine-junit-reporter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('jasmine-reporters');
require('./node_modules/jasmine-reporters');

class JasmineJUnitReporter extends jasmine.JUnitXmlReporter {
fullDescription(spec) {
Expand Down
2 changes: 1 addition & 1 deletion spec/jasmine-list-reporter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { TerminalReporter } = require('jasmine-tagged');
const { TerminalReporter } = require('./node_modules/jasmine-tagged');

class JasmineListReporter extends TerminalReporter {
fullDescription(spec) {
Expand Down
4 changes: 2 additions & 2 deletions spec/jasmine-test-runner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ temp.track()
module.exports = ({logFile, headless, testPaths, buildAtomEnvironment}) ->
window[key] = value for key, value of require '../vendor/jasmine'

require 'jasmine-tagged'
require './node_modules/jasmine-tagged'

# Rewrite global jasmine functions to have support for async tests.
# This way packages can create async specs without having to import these from the
Expand Down Expand Up @@ -166,5 +166,5 @@ buildTerminalReporter = (logFile, resolveWithExitCode) ->
{JasmineListReporter} = require './jasmine-list-reporter'
new JasmineListReporter(options)
else
{TerminalReporter} = require 'jasmine-tagged'
{TerminalReporter} = require './node_modules/jasmine-tagged'
new TerminalReporter(options)
2 changes: 1 addition & 1 deletion spec/main-process/atom-application.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { EventEmitter } = require('events');
const temp = require('temp').track();
const fs = require('fs-plus');
const electron = require('electron');
const sandbox = require('sinon').createSandbox();
const sandbox = require('../node_modules/sinon').createSandbox();

const AtomApplication = require('../../src/main-process/atom-application');
const parseCommandLine = require('../../src/main-process/parse-command-line');
Expand Down
2 changes: 1 addition & 1 deletion spec/main-process/atom-window.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const fs = require('fs-plus');
const url = require('url');
const { EventEmitter } = require('events');
const temp = require('temp').track();
const sandbox = require('sinon').createSandbox();
const sandbox = require('../node_modules/sinon').createSandbox();
const dedent = require('dedent');

const AtomWindow = require('../../src/main-process/atom-window');
Expand Down
4 changes: 2 additions & 2 deletions spec/main-process/file-recovery-service.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const FileRecoveryService = require('../../src/main-process/file-recovery-servic
const fs = require('fs-plus');
const fsreal = require('fs');
const EventEmitter = require('events').EventEmitter;
const { assert } = require('chai');
const sinon = require('sinon');
const { assert } = require('../node_modules/chai');
const sinon = require('../node_modules/sinon');
const { escapeRegExp } = require('underscore-plus');
const temp = require('temp').track();

Expand Down
4 changes: 2 additions & 2 deletions spec/main-process/mocha-test-runner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Mocha = require('mocha');
const Mocha = require('../node_modules/mocha');
const fs = require('fs-plus');
const { assert } = require('chai');
const { assert } = require('../node_modules/chai');

module.exports = function(testPaths) {
global.assert = assert;
Expand Down
2 changes: 1 addition & 1 deletion spec/main-process/parse-command-line.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { assert } = require('chai');
const { assert } = require('../node_modules/chai');
const parseCommandLine = require('../../src/main-process/parse-command-line');

describe('parseCommandLine', () => {
Expand Down
2 changes: 1 addition & 1 deletion spec/spec-helper.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'jasmine-json'
require './node_modules/jasmine-json'
require '../src/window'
require '../vendor/jasmine-jquery'
path = require 'path'
Expand Down

0 comments on commit 6ca5b67

Please sign in to comment.