mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-03 01:44:42 +08:00
Add missing test fixtures and fix path for reading them
This commit is contained in:
parent
ee2dc6c3f6
commit
8f945888e4
3 changed files with 119 additions and 1 deletions
51
packages/nylas-message-processor/spec/fixtures/1-99174-body.txt
vendored
Normal file
51
packages/nylas-message-processor/spec/fixtures/1-99174-body.txt
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
----==_mimepart_576812149912_70c83ff638d112bc812dd
|
||||
Content-Type: text/plain;
|
||||
charset=UTF-8
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
> @@ -1298,3 +1298,15 @@
|
||||
> - "Unity"
|
||||
> - "Scratch"
|
||||
> icon: "gausssense.png"
|
||||
> +-
|
||||
> + name: "Jasper"
|
||||
> + description: "The GitHub Issue Reader"
|
||||
> + website: "https://jasperapp.io"
|
||||
> + repository: "https://github.com/jasperapp/jasper"
|
||||
> + license: ""
|
||||
|
||||
Oh oops, one more thing, you can also just remove this line rather than leave it empty.
|
||||
|
||||
---
|
||||
You are receiving this because you are subscribed to this thread.
|
||||
Reply to this email directly or view it on GitHub:
|
||||
https://github.com/electron/electron.atom.io/pull/352/files/c3af72fe5aea0add912cd5afe153a626619de222#r67715160
|
||||
----==_mimepart_576812149912_70c83ff638d112bc812dd
|
||||
Content-Type: text/html;
|
||||
charset=UTF-8
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
<p>In <a href="https://github.com/electron/electron.atom.io/pull/352#discussion_r67715160">_data/apps.yml</a>:</p>
|
||||
<pre style='color:#555'>> @@ -1298,3 +1298,15 @@
|
||||
> - "Unity"
|
||||
> - "Scratch"
|
||||
> icon: "gausssense.png"
|
||||
> +-
|
||||
> + name: "Jasper"
|
||||
> + description: "The GitHub Issue Reader"
|
||||
> + website: "https://jasperapp.io"
|
||||
> + repository: "https://github.com/jasperapp/jasper"
|
||||
> + license: ""
|
||||
</pre>
|
||||
<p>Oh oops, one more thing, you can also just remove this line rather than leave it empty. </p>
|
||||
|
||||
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/electron/electron.atom.io/pull/352/files/c3af72fe5aea0add912cd5afe153a626619de222#r67715160">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AA_TnJLmsKfR4hNuUZ3uUkv2iQ-_LjhEks5qNrgUgaJpZM4I5F90">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AA_TnBFImPbNv9RyTxshvjiT_cZCsVwCks5qNrgUgaJpZM4I5F90.gif" width="1" /></p>
|
||||
<div itemscope itemtype="http://schema.org/EmailMessage">
|
||||
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
|
||||
<link itemprop="url" href="https://github.com/electron/electron.atom.io/pull/352/files/c3af72fe5aea0add912cd5afe153a626619de222#r67715160"></link>
|
||||
<meta itemprop="name" content="View Pull Request"></meta>
|
||||
</div>
|
||||
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
|
||||
</div>
|
||||
|
||||
----==_mimepart_576812149912_70c83ff638d112bc812dd--
|
67
packages/nylas-message-processor/spec/fixtures/1-99174-headers.txt
vendored
Normal file
67
packages/nylas-message-processor/spec/fixtures/1-99174-headers.txt
vendored
Normal file
|
@ -0,0 +1,67 @@
|
|||
Delivered-To: bengotow@gmail.com
|
||||
Received: by 10.107.39.131 with SMTP id n125csp1566492ion; Mon, 20 Jun 2016
|
||||
08:56:06 -0700 (PDT)
|
||||
X-Received: by 10.107.175.83 with SMTP id y80mr24643127ioe.70.1466438166869;
|
||||
Mon, 20 Jun 2016 08:56:06 -0700 (PDT)
|
||||
Return-Path: <bounces+848413-92ca-bengotow=gmail.com@sgmail.github.com>
|
||||
Received: from o5.sgmail.github.com (o5.sgmail.github.com. [192.254.113.10])
|
||||
by mx.google.com with ESMTPS id g123si16992050ioe.194.2016.06.20.08.56.06 for
|
||||
<bengotow@gmail.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256
|
||||
bits=128/128); Mon, 20 Jun 2016 08:56:06 -0700 (PDT)
|
||||
Received-SPF: pass (google.com: best guess record for domain of
|
||||
bounces+848413-92ca-bengotow=gmail.com@sgmail.github.com designates
|
||||
192.254.113.10 as permitted sender) client-ip=192.254.113.10;
|
||||
Authentication-Results: mx.google.com; dkim=pass header.i=@github.com;
|
||||
dkim=pass header.i=@sendgrid.info; spf=pass (google.com: best guess record
|
||||
for domain of bounces+848413-92ca-bengotow=gmail.com@sgmail.github.com
|
||||
designates 192.254.113.10 as permitted sender)
|
||||
smtp.mailfrom=bounces+848413-92ca-bengotow=gmail.com@sgmail.github.com;
|
||||
dmarc=pass (p=NONE dis=NONE) header.from=github.com
|
||||
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=github.com;
|
||||
h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe;
|
||||
s=s20150108; bh=5XfiJ/IF3qb2JfQruE1ZXDdHpzo=; b=pVyxGvcKaxEE3zix
|
||||
VALF4ugiEssCLrxxiuKOPttOz/WL7Xzf6wUl74cHRUbZ4ShEXT3pe8yUbiMuWJIy
|
||||
R/Kegxrf+ThIoFNNj4SLuZbtv+N7Ic2GrXZdxZLyHnR5sxNKdXk7r0Z6GkXdmavZ
|
||||
Y3GYWjJp9DO7FMFyQ88BqIPQXto=
|
||||
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info;
|
||||
h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe:x-feedback-id;
|
||||
s=smtpapi; bh=5XfiJ/IF3qb2JfQruE1ZXDdHpzo=; b=WHrBPVafQkvIJmwSPM
|
||||
SPpv2z0GcAQcM8IKTj/L4KDI92vwfoy8zclmTj+NB4XP5LH8Fcjd3Zj9yFJvb5O/
|
||||
2+ZSEhQNSg9ALStUDQuGYR0kzspSQsvncx4jI7tHZPfP2oAZkQIu4IYLjVN80IEF
|
||||
SuFzrPpitO7BmwcRSiAy7SZLI=
|
||||
Received: by filter0441p1mdw1.sendgrid.net with SMTP id
|
||||
filter0441p1mdw1.13584.5768121421 2016-06-20 15:56:04.264672456 +0000 UTC
|
||||
Received: from github-smtp2b-ext-cp1-prd.iad.github.net
|
||||
(github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by
|
||||
ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id LipJElPMRZOlYFTbOZCHmg for
|
||||
<bengotow@gmail.com>; Mon, 20 Jun 2016 15:56:04.173 +0000 (UTC)
|
||||
Date: Mon, 20 Jun 2016 08:56:04 -0700
|
||||
From: Jessica Lord <notifications@github.com>
|
||||
Reply-To: "electron/electron.atom.io"
|
||||
<reply+000fd39cefc8acddea06d083a65de369fca801b440c9cd0492cf00000001137fd41492a170ce04094058@reply.github.com>
|
||||
To: "electron/electron.atom.io" <electron.atom.io@noreply.github.com>
|
||||
Cc:
|
||||
Message-ID: <electron/electron.atom.io/pull/352/r67715160@github.com>
|
||||
In-Reply-To: <electron/electron.atom.io/pull/352@github.com>
|
||||
References: <electron/electron.atom.io/pull/352@github.com>
|
||||
Subject: Re: [electron/electron.atom.io] Add Jasper app (#352)
|
||||
Mime-Version: 1.0
|
||||
Content-Type: multipart/alternative;
|
||||
boundary="--==_mimepart_576812149912_70c83ff638d112bc812dd"; charset=UTF-8
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Precedence: list
|
||||
X-GitHub-Sender: jlord
|
||||
X-GitHub-Recipient: bengotow
|
||||
List-ID: electron/electron.atom.io <electron.atom.io.electron.github.com>
|
||||
List-Archive: https://github.com/electron/electron.atom.io
|
||||
List-Post: <mailto:reply+000fd39cefc8acddea06d083a65de369fca801b440c9cd0492cf00000001137fd41492a170ce04094058@reply.github.com>
|
||||
List-Unsubscribe: <mailto:unsub+000fd39cefc8acddea06d083a65de369fca801b440c9cd0492cf00000001137fd41492a170ce04094058@reply.github.com>,
|
||||
<https://github.com/notifications/unsubscribe/AA_TnJLmsKfR4hNuUZ3uUkv2iQ-_LjhEks5qNrgUgaJpZM4I5F90>
|
||||
X-Auto-Response-Suppress: All
|
||||
X-GitHub-Recipient-Address: bengotow@gmail.com
|
||||
X-SG-EID: zpvha59ROIAeS8NpfQSmmILEvCHiUBlaQ8TFhOrQHPl0QSHOgRoWHzGqgNGQ1PnCE+4nt5yi6b+iVd
|
||||
zi18AeK3NmcJMPjYoKBL9oylAFXcX7JSvmAI2o8GQMXjRfn6C9jjTKhzFhZ3brgLB13N+v++poucpZ
|
||||
K0ksN28YtdSO0PvYYktx2Lu+g8yKBRFzyXmcuJM5D9O3YDhd0/VRVk1WlanT5sFV/t1fjjJtGwaOvg
|
||||
4=
|
||||
X-Feedback-ID: 848413:6xvVEJqleZlAW7/vhv7PzD/cv5tamo2SWZDKyvugGvg=:6xvVEJqleZlAW7/vhv7PzD/cv5tamo2SWZDKyvugGvg=:SG
|
||||
|
|
@ -2,7 +2,7 @@ const path = require('path')
|
|||
const fs = require('fs')
|
||||
const {processMessage} = require('../processors/parsing')
|
||||
|
||||
const BASE_PATH = path.join('/', 'Users', 'juan', 'Downloads', 'sample data')
|
||||
const BASE_PATH = path.join(__dirname, 'fixtures')
|
||||
|
||||
|
||||
it('parses the message correctly', (done) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue