mirror of
https://github.com/atom/atom.git
synced 2026-02-06 12:44:59 -05:00
Require ipc-renderer where it belongs
This commit is contained in:
@@ -2,7 +2,7 @@ fs = require 'fs'
|
||||
_ = require 'underscore-plus'
|
||||
fs = require 'fs-plus'
|
||||
path = require 'path'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
module.exports = ({logFile, headless, testPaths, buildAtomEnvironment}) ->
|
||||
window[key] = value for key, value of require '../vendor/jasmine'
|
||||
|
||||
@@ -4585,7 +4585,7 @@ describe('TextEditorComponent', function () {
|
||||
|
||||
it('pastes the previously selected text at the clicked location', async function () {
|
||||
let clipboardWrittenTo = false
|
||||
spyOn(require('ipc-main'), 'send').andCallFake(function (eventName, selectedText) {
|
||||
spyOn(require('ipc-renderer'), 'send').andCallFake(function (eventName, selectedText) {
|
||||
if (eventName === 'write-text-to-selection-clipboard') {
|
||||
require('../src/safe-clipboard').writeText(selectedText, 'selection')
|
||||
clipboardWrittenTo = true
|
||||
|
||||
@@ -4,7 +4,7 @@ fs = require 'fs-plus'
|
||||
temp = require 'temp'
|
||||
TextEditor = require '../src/text-editor'
|
||||
WindowEventHandler = require '../src/window-event-handler'
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
|
||||
describe "WindowEventHandler", ->
|
||||
[projectPath, windowEventHandler] = []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
ipc = require 'ipc-main'
|
||||
ipc = require 'ipc-renderer'
|
||||
path = require 'path'
|
||||
temp = require('temp').track()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user