From 8f945888e4e05f76c3d732b4bae5bde14b544400 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Fri, 24 Jun 2016 10:39:30 -0700 Subject: [PATCH] Add missing test fixtures and fix path for reading them --- .../spec/fixtures/1-99174-body.txt | 51 ++++++++++++++ .../spec/fixtures/1-99174-headers.txt | 67 +++++++++++++++++++ .../spec/parsing-spec.js | 2 +- 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 packages/nylas-message-processor/spec/fixtures/1-99174-body.txt create mode 100644 packages/nylas-message-processor/spec/fixtures/1-99174-headers.txt diff --git a/packages/nylas-message-processor/spec/fixtures/1-99174-body.txt b/packages/nylas-message-processor/spec/fixtures/1-99174-body.txt new file mode 100644 index 000000000..c711338c0 --- /dev/null +++ b/packages/nylas-message-processor/spec/fixtures/1-99174-body.txt @@ -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 + +

In _data/apps.yml:

+
> @@ -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, view it on GitHub, or mute the thread.

+
+
+ + +
+ +
+ +----==_mimepart_576812149912_70c83ff638d112bc812dd-- diff --git a/packages/nylas-message-processor/spec/fixtures/1-99174-headers.txt b/packages/nylas-message-processor/spec/fixtures/1-99174-headers.txt new file mode 100644 index 000000000..3658cf07b --- /dev/null +++ b/packages/nylas-message-processor/spec/fixtures/1-99174-headers.txt @@ -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: +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 + (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 + ; Mon, 20 Jun 2016 15:56:04.173 +0000 (UTC) +Date: Mon, 20 Jun 2016 08:56:04 -0700 +From: Jessica Lord +Reply-To: "electron/electron.atom.io" + +To: "electron/electron.atom.io" +Cc: +Message-ID: +In-Reply-To: +References: +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 +List-Archive: https://github.com/electron/electron.atom.io +List-Post: +List-Unsubscribe: , + +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 + diff --git a/packages/nylas-message-processor/spec/parsing-spec.js b/packages/nylas-message-processor/spec/parsing-spec.js index e1c2b8a3d..64b6504f6 100644 --- a/packages/nylas-message-processor/spec/parsing-spec.js +++ b/packages/nylas-message-processor/spec/parsing-spec.js @@ -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) => {