mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
feat(babel6): Fix autlinker spec
This commit is contained in:
parent
cee732fd8c
commit
f2d153c87b
4 changed files with 11 additions and 10 deletions
|
@ -2,7 +2,7 @@ import {autolink} from '../lib/autolinker';
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
describe('autolink', function autolink() {
|
||||
describe('autolink', function autolinkSpec() {
|
||||
const fixturesDir = path.join(__dirname, 'autolinker-fixtures');
|
||||
fs.readdirSync(fixturesDir).filter(filename =>
|
||||
filename.indexOf('-in.html') !== -1
|
||||
|
|
|
@ -77,7 +77,7 @@ user_4 = new Contact
|
|||
email: "user4@nylas.com"
|
||||
|
||||
MessageItemBody = proxyquire '../lib/message-item-body',
|
||||
'./email-frame': EmailFrameStub
|
||||
'./email-frame': {default: EmailFrameStub}
|
||||
|
||||
|
||||
describe "MessageItem", ->
|
||||
|
|
|
@ -220,6 +220,13 @@ beforeEach ->
|
|||
|
||||
TimeOverride.resetSpyData()
|
||||
|
||||
util = require('util')
|
||||
console.inspect = (args...) ->
|
||||
arg = args
|
||||
if (args.length is 1)
|
||||
arg = args[0]
|
||||
console.log(util.inspect(arg))
|
||||
|
||||
original_log = console.log
|
||||
original_warn = console.warn
|
||||
original_error = console.error
|
||||
|
|
|
@ -52,12 +52,6 @@ export class Registry {
|
|||
Registry.include(Publisher);
|
||||
Registry.include(Listener);
|
||||
|
||||
export const Composer = new Registry(
|
||||
'Composer',
|
||||
composerExtAdapter
|
||||
);
|
||||
export const Composer = new Registry('Composer');
|
||||
|
||||
export const MessageView = new Registry(
|
||||
'MessageView',
|
||||
messageViewExtAdapter
|
||||
);
|
||||
export const MessageView = new Registry('MessageView');
|
||||
|
|
Loading…
Reference in a new issue