From 7d7303f5d540ba78d561f4f0c4d777ff85583a7d Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Thu, 10 Jan 2019 15:46:12 +0200 Subject: [PATCH 1/7] feat: add fastcompany custom parser --- .../www.fastcompany.com/1547124373499.html | 43 ++++++++ src/extractors/custom/index.js | 1 + .../custom/www.fastcompany.com/index.js | 39 ++++++++ .../custom/www.fastcompany.com/index.test.js | 97 +++++++++++++++++++ 4 files changed, 180 insertions(+) create mode 100644 fixtures/www.fastcompany.com/1547124373499.html create mode 100644 src/extractors/custom/www.fastcompany.com/index.js create mode 100644 src/extractors/custom/www.fastcompany.com/index.test.js diff --git a/fixtures/www.fastcompany.com/1547124373499.html b/fixtures/www.fastcompany.com/1547124373499.html new file mode 100644 index 000000000..213f9900a --- /dev/null +++ b/fixtures/www.fastcompany.com/1547124373499.html @@ -0,0 +1,43 @@ +The Only Five Email Folders Your Inbox Will Ever Need
+ + + + + + + + + + + + + + + + + +
advertisement
advertisement
advertisement

The Only Five Email Folders Your Inbox Will Ever Need

Stop “organizing” your emails by subject and start thinking of them in terms of deadlines. +

The Only Five Email Folders Your Inbox Will Ever Need
[Photo: RADsan/iStock]

For years, my approach to email was like slaying a hydra. For every email I deleted, two more landed in my inbox.

advertisement
advertisement

Part of the problem, I knew, was the nature of my work. My team stands between two major organizations within my company, making collaboration crucial, however inefficient it was in practice. So not only did I put up with this mess, I was actually complicit in letting it worsen. I saved everything. I thought most messages addressed directly to me needed my response. I was wrong.

Looking back, I didn’t have the discipline and discernment to really manage my email habits. The system I use now isn’t a product of my own invention. My best friend works for a major consulting firm, and I was grateful when he sketched out the rough strategy his firm shares with consultants to help them manage their own unruly inboxes. The technique comes with all the beauty and simplicity you’d expect from a firm charging seven figures per engagement–and it relies on a folder system you can tally on one hand.

Ditch Subjects For Deadlines

The biggest mistake, in my experience, is creating folders based on topics. Emails, like meetings, rarely stay on track.

+
+
My newly streamlined, uncluttered inbox has a grand total of five folders.
+

Where do you file an important update that covers two unrelated projects? What do you do with that same email if it requires a response?

The second mistake I’ve seen, and personally committed, is trying to use an inbox as a to-do list. There simply aren’t enough hours in the workday to respond to the emails that pile up there. Over time, precisely because of the way I was “organizing” my inbox, emails that I should’ve responded to got pushed further and further down, and were eventually forgotten.

The system that saved my sanity requires only five folders:

advertisement
    +
  1. Inbox: the inbox is a holding pen. Emails shouldn’t stay here any longer than it takes for you to file them into another folder. The exception to this rule is when you respond immediately and are waiting for an immediate response.
  2. +
  3. Today: Everything that requires a response today.
  4. +
  5. This Week: Everything that requires a response before the end of the week.
  6. +
  7. This Month/Quarter: – Everything that needs a longer-term response. Depending on your role, you many need a monthly folder. Others can operate on a quarterly basis.
  8. +
  9. FYI: Most items I receive are informational. If I think I may need to reference an email again, I’ll save it to this folder.
  10. +

Show No Mercy

Email will quickly become your master if you don’t take charge. So once you embrace this system, you need to adhere to it mercilessly–there are no half measures. We tend to get more lax about newly adopted habits as their newness rubs off. But I’ve actually gotten better over time at sticking to my five-folder rule. I’m ruthless about deleting emails that don’t require my attention. Here are five tips that make the system more effective.

First, I keep an actual to-do list. Occasionally I’ll add items to that list based on the content of an email that didn’t require a response. For example, if an email thread results in deciding that we need to schedule a meeting, I’ll make a note to prep my boss with some information from those emails–but I’ll delete them once I’ve finished that prep session.

Second, don’t exaggerate your own importance. Too many people want to have a say in too many things. We all have leadership aspirations–and that’s generally a good thing. One way to grow your influence is indeed by taking on more responsibility. But don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties. If you don’t need to respond, put it in the “FYI” folder or delete it–it’s one or the other. And if you stay on “cc,” you’ll get the latest thread when everyone responds, so there’s no need to worry.

Third, don’t exaggerate the importance of others. A lot of people want responses today. I’m one of them. But I’ve learned that I don’t always need or deserve a response today. This is especially true if you have obligations that directly impact customers or your company’s financial health. Don’t put emails in the “Today” folder that don’t belong there; if it’s in the “Today” folder you have to respond to it that day, no exceptions.

My rule is simple: If my wife asked me to come home early and I was willing to leave emails in the “Today” folder, that doesn’t mean I need to blast through them once I get home–it means those emails didn’t belong in that folder to begin with. I try and limit “Today” emails to messages involving customers, my boss, and urgent projects.

advertisement

Fourth, you can work out of multiple folders simultaneously. Try to keep the “Today” folder small, for obvious reasons. If it’s empty and you’ve got time to address longer-term emails, dive into the “This Week” folder. I typically spend my Friday mornings doing “This Week” emails. If I don’t have all the information I need, I may begin my response but save it as a draft, and hold off sending it until I’m all squared away.

Finally, if your work is project-based, you can create this five-folder system for each project. You may have two or three projects running at a time, and technically wind up with 10 to 15 total folders as a result–but the system still holds. After the project is complete, archive the entire structure.

Like every new work habit, and especially those involving personal organization, this one may feel unnatural at first. I found it needed some getting used to. Soon after I switched to this method, I was still stressed out because I felt like I was missing something. In reality, though, everything was completed, and I gradually began to see that. It turned out that I’d gotten used to feeling the burden of email and was confusing it with productivity. Armed with just five folders, those days are over.


Zach Hanlon is a marketing and sales expert who has worked with IBM, Oracle, and other businesses to improve their e-commerce and customer experience operations. Follow him on Twitter at @zshanlon.

advertisement
advertisement
+ + + + + + +
\ No newline at end of file diff --git a/src/extractors/custom/index.js b/src/extractors/custom/index.js index 1395dad40..1b8c6b9f9 100644 --- a/src/extractors/custom/index.js +++ b/src/extractors/custom/index.js @@ -89,3 +89,4 @@ export * from './gothamist.com'; export * from './www.fool.com'; export * from './www.slate.com'; export * from './ici.radio-canada.ca'; +export * from './www.fastcompany.com'; \ No newline at end of file diff --git a/src/extractors/custom/www.fastcompany.com/index.js b/src/extractors/custom/www.fastcompany.com/index.js new file mode 100644 index 000000000..0837b39cb --- /dev/null +++ b/src/extractors/custom/www.fastcompany.com/index.js @@ -0,0 +1,39 @@ +export const WwwFastcompanyComExtractor = { + domain: 'www.fastcompany.com', + + title: { + selectors: [ + 'h1', + ], + }, + + author: { + selectors: [ + '.post__by', + ], + }, + + date_published: { + selectors: [ + ['meta[name="article:published_time"]', 'value'], + ], + }, + + dek: { + selectors: [ + '.post__deck', + ], + }, + + lead_image_url: { + selectors: [ + ['meta[name="og:image"]', 'value'], + ], + }, + + content: { + selectors: [ + '.post__article', + ], + }, +}; diff --git a/src/extractors/custom/www.fastcompany.com/index.test.js b/src/extractors/custom/www.fastcompany.com/index.test.js new file mode 100644 index 000000000..fb0be3cda --- /dev/null +++ b/src/extractors/custom/www.fastcompany.com/index.test.js @@ -0,0 +1,97 @@ +import assert from 'assert'; +import fs from 'fs'; +import URL from 'url'; +import cheerio from 'cheerio'; + +import Mercury from 'mercury'; +import getExtractor from 'extractors/get-extractor'; +import { excerptContent } from 'utils/text'; + +describe('WwwFastcompanyComExtractor', () => { + describe('initial test case', () => { + let result; + let url; + beforeAll(() => { + url = + 'https://www.fastcompany.com/3067012/the-only-five-email-folders-your-inbox-will-ever-need'; + const html = + fs.readFileSync('./fixtures/www.fastcompany.com/1547124373499.html'); + result = + Mercury.parse(url, html, { fallback: false }); + }); + + it('is selected properly', () => { + // This test should be passing by default. + // It sanity checks that the correct parser + // is being selected for URLs from this domain + const extractor = getExtractor(url); + assert.equal(extractor.domain, URL.parse(url).hostname); + }); + + it('returns the title', async () => { + // To pass this test, fill out the title selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { title } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(title, 'The Only Five Email Folders Your Inbox Will Ever Need'); + }); + + it('returns the author', async () => { + // To pass this test, fill out the author selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { author } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(author, 'Zach Hanlon'); + }); + + it('returns the date_published', async () => { + // To pass this test, fill out the date_published selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { date_published } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(date_published, '2017-01-09T03:00:00.000Z'); + }); + + it('returns the dek', async () => { + // To pass this test, fill out the dek selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { dek } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(dek, 'Stop “organizing” your emails by subject and start thinking of them in terms of deadlines.'); + }); + + it('returns the lead_image_url', async () => { + // To pass this test, fill out the lead_image_url selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { lead_image_url } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(lead_image_url, 'https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/fc/3067012-poster-p-1-the-only-five-email-folders-your-inbox-will-ever-need.jpg'); + }); + + it('returns the content', async () => { + // To pass this test, fill out the content selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + // You may also want to make use of the clean and transform + // options. + const { content } = await result; + + const $ = cheerio.load(content || ''); + + const first13 = excerptContent($('*').first().text(), 13); + + // Update these values with the expected values from + // the article. + assert.equal(first13, 'For years, my approach to email was like slaying a hydra. For every'); + }); + }); +}); From 457a7b285741a83772438c0b52efbf710c0715b4 Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Thu, 10 Jan 2019 15:57:50 +0200 Subject: [PATCH 2/7] fix: eslint error --- src/extractors/custom/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extractors/custom/index.js b/src/extractors/custom/index.js index 1b8c6b9f9..86046fee4 100644 --- a/src/extractors/custom/index.js +++ b/src/extractors/custom/index.js @@ -89,4 +89,4 @@ export * from './gothamist.com'; export * from './www.fool.com'; export * from './www.slate.com'; export * from './ici.radio-canada.ca'; -export * from './www.fastcompany.com'; \ No newline at end of file +export * from './www.fastcompany.com'; From 53d11ca0a121fbc950f94fc5102bae5323364b16 Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Thu, 10 Jan 2019 16:09:34 +0200 Subject: [PATCH 3/7] fix: test for date_published --- src/extractors/custom/www.fastcompany.com/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extractors/custom/www.fastcompany.com/index.test.js b/src/extractors/custom/www.fastcompany.com/index.test.js index fb0be3cda..90838bc30 100644 --- a/src/extractors/custom/www.fastcompany.com/index.test.js +++ b/src/extractors/custom/www.fastcompany.com/index.test.js @@ -55,7 +55,7 @@ describe('WwwFastcompanyComExtractor', () => { // Update these values with the expected values from // the article. - assert.equal(date_published, '2017-01-09T03:00:00.000Z'); + assert.equal(date_published, '2017-01-09T05:00:00.000Z'); }); it('returns the dek', async () => { From 11e2f9065c6409125f62bfc76d2a62f84a2e51c1 Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Thu, 10 Jan 2019 15:46:12 +0200 Subject: [PATCH 4/7] feat: add fastcompany custom parser --- .../www.fastcompany.com/1547124373499.html | 43 ++++++++ src/extractors/custom/index.js | 1 + .../custom/www.fastcompany.com/index.js | 39 ++++++++ .../custom/www.fastcompany.com/index.test.js | 97 +++++++++++++++++++ 4 files changed, 180 insertions(+) create mode 100644 fixtures/www.fastcompany.com/1547124373499.html create mode 100644 src/extractors/custom/www.fastcompany.com/index.js create mode 100644 src/extractors/custom/www.fastcompany.com/index.test.js diff --git a/fixtures/www.fastcompany.com/1547124373499.html b/fixtures/www.fastcompany.com/1547124373499.html new file mode 100644 index 000000000..213f9900a --- /dev/null +++ b/fixtures/www.fastcompany.com/1547124373499.html @@ -0,0 +1,43 @@ +The Only Five Email Folders Your Inbox Will Ever Need
+ + + + + + + + + + + + + + + + + +
advertisement
advertisement
advertisement

The Only Five Email Folders Your Inbox Will Ever Need

Stop “organizing” your emails by subject and start thinking of them in terms of deadlines. +

The Only Five Email Folders Your Inbox Will Ever Need
[Photo: RADsan/iStock]

For years, my approach to email was like slaying a hydra. For every email I deleted, two more landed in my inbox.

advertisement
advertisement

Part of the problem, I knew, was the nature of my work. My team stands between two major organizations within my company, making collaboration crucial, however inefficient it was in practice. So not only did I put up with this mess, I was actually complicit in letting it worsen. I saved everything. I thought most messages addressed directly to me needed my response. I was wrong.

Looking back, I didn’t have the discipline and discernment to really manage my email habits. The system I use now isn’t a product of my own invention. My best friend works for a major consulting firm, and I was grateful when he sketched out the rough strategy his firm shares with consultants to help them manage their own unruly inboxes. The technique comes with all the beauty and simplicity you’d expect from a firm charging seven figures per engagement–and it relies on a folder system you can tally on one hand.

Ditch Subjects For Deadlines

The biggest mistake, in my experience, is creating folders based on topics. Emails, like meetings, rarely stay on track.

+
+
My newly streamlined, uncluttered inbox has a grand total of five folders.
+

Where do you file an important update that covers two unrelated projects? What do you do with that same email if it requires a response?

The second mistake I’ve seen, and personally committed, is trying to use an inbox as a to-do list. There simply aren’t enough hours in the workday to respond to the emails that pile up there. Over time, precisely because of the way I was “organizing” my inbox, emails that I should’ve responded to got pushed further and further down, and were eventually forgotten.

The system that saved my sanity requires only five folders:

advertisement
    +
  1. Inbox: the inbox is a holding pen. Emails shouldn’t stay here any longer than it takes for you to file them into another folder. The exception to this rule is when you respond immediately and are waiting for an immediate response.
  2. +
  3. Today: Everything that requires a response today.
  4. +
  5. This Week: Everything that requires a response before the end of the week.
  6. +
  7. This Month/Quarter: – Everything that needs a longer-term response. Depending on your role, you many need a monthly folder. Others can operate on a quarterly basis.
  8. +
  9. FYI: Most items I receive are informational. If I think I may need to reference an email again, I’ll save it to this folder.
  10. +

Show No Mercy

Email will quickly become your master if you don’t take charge. So once you embrace this system, you need to adhere to it mercilessly–there are no half measures. We tend to get more lax about newly adopted habits as their newness rubs off. But I’ve actually gotten better over time at sticking to my five-folder rule. I’m ruthless about deleting emails that don’t require my attention. Here are five tips that make the system more effective.

First, I keep an actual to-do list. Occasionally I’ll add items to that list based on the content of an email that didn’t require a response. For example, if an email thread results in deciding that we need to schedule a meeting, I’ll make a note to prep my boss with some information from those emails–but I’ll delete them once I’ve finished that prep session.

Second, don’t exaggerate your own importance. Too many people want to have a say in too many things. We all have leadership aspirations–and that’s generally a good thing. One way to grow your influence is indeed by taking on more responsibility. But don’t confuse having an opinion with leadership, or mounting email volume with weightier job duties. If you don’t need to respond, put it in the “FYI” folder or delete it–it’s one or the other. And if you stay on “cc,” you’ll get the latest thread when everyone responds, so there’s no need to worry.

Third, don’t exaggerate the importance of others. A lot of people want responses today. I’m one of them. But I’ve learned that I don’t always need or deserve a response today. This is especially true if you have obligations that directly impact customers or your company’s financial health. Don’t put emails in the “Today” folder that don’t belong there; if it’s in the “Today” folder you have to respond to it that day, no exceptions.

My rule is simple: If my wife asked me to come home early and I was willing to leave emails in the “Today” folder, that doesn’t mean I need to blast through them once I get home–it means those emails didn’t belong in that folder to begin with. I try and limit “Today” emails to messages involving customers, my boss, and urgent projects.

advertisement

Fourth, you can work out of multiple folders simultaneously. Try to keep the “Today” folder small, for obvious reasons. If it’s empty and you’ve got time to address longer-term emails, dive into the “This Week” folder. I typically spend my Friday mornings doing “This Week” emails. If I don’t have all the information I need, I may begin my response but save it as a draft, and hold off sending it until I’m all squared away.

Finally, if your work is project-based, you can create this five-folder system for each project. You may have two or three projects running at a time, and technically wind up with 10 to 15 total folders as a result–but the system still holds. After the project is complete, archive the entire structure.

Like every new work habit, and especially those involving personal organization, this one may feel unnatural at first. I found it needed some getting used to. Soon after I switched to this method, I was still stressed out because I felt like I was missing something. In reality, though, everything was completed, and I gradually began to see that. It turned out that I’d gotten used to feeling the burden of email and was confusing it with productivity. Armed with just five folders, those days are over.


Zach Hanlon is a marketing and sales expert who has worked with IBM, Oracle, and other businesses to improve their e-commerce and customer experience operations. Follow him on Twitter at @zshanlon.

advertisement
advertisement
+ + + + + + +
\ No newline at end of file diff --git a/src/extractors/custom/index.js b/src/extractors/custom/index.js index 1395dad40..1b8c6b9f9 100644 --- a/src/extractors/custom/index.js +++ b/src/extractors/custom/index.js @@ -89,3 +89,4 @@ export * from './gothamist.com'; export * from './www.fool.com'; export * from './www.slate.com'; export * from './ici.radio-canada.ca'; +export * from './www.fastcompany.com'; \ No newline at end of file diff --git a/src/extractors/custom/www.fastcompany.com/index.js b/src/extractors/custom/www.fastcompany.com/index.js new file mode 100644 index 000000000..0837b39cb --- /dev/null +++ b/src/extractors/custom/www.fastcompany.com/index.js @@ -0,0 +1,39 @@ +export const WwwFastcompanyComExtractor = { + domain: 'www.fastcompany.com', + + title: { + selectors: [ + 'h1', + ], + }, + + author: { + selectors: [ + '.post__by', + ], + }, + + date_published: { + selectors: [ + ['meta[name="article:published_time"]', 'value'], + ], + }, + + dek: { + selectors: [ + '.post__deck', + ], + }, + + lead_image_url: { + selectors: [ + ['meta[name="og:image"]', 'value'], + ], + }, + + content: { + selectors: [ + '.post__article', + ], + }, +}; diff --git a/src/extractors/custom/www.fastcompany.com/index.test.js b/src/extractors/custom/www.fastcompany.com/index.test.js new file mode 100644 index 000000000..fb0be3cda --- /dev/null +++ b/src/extractors/custom/www.fastcompany.com/index.test.js @@ -0,0 +1,97 @@ +import assert from 'assert'; +import fs from 'fs'; +import URL from 'url'; +import cheerio from 'cheerio'; + +import Mercury from 'mercury'; +import getExtractor from 'extractors/get-extractor'; +import { excerptContent } from 'utils/text'; + +describe('WwwFastcompanyComExtractor', () => { + describe('initial test case', () => { + let result; + let url; + beforeAll(() => { + url = + 'https://www.fastcompany.com/3067012/the-only-five-email-folders-your-inbox-will-ever-need'; + const html = + fs.readFileSync('./fixtures/www.fastcompany.com/1547124373499.html'); + result = + Mercury.parse(url, html, { fallback: false }); + }); + + it('is selected properly', () => { + // This test should be passing by default. + // It sanity checks that the correct parser + // is being selected for URLs from this domain + const extractor = getExtractor(url); + assert.equal(extractor.domain, URL.parse(url).hostname); + }); + + it('returns the title', async () => { + // To pass this test, fill out the title selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { title } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(title, 'The Only Five Email Folders Your Inbox Will Ever Need'); + }); + + it('returns the author', async () => { + // To pass this test, fill out the author selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { author } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(author, 'Zach Hanlon'); + }); + + it('returns the date_published', async () => { + // To pass this test, fill out the date_published selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { date_published } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(date_published, '2017-01-09T03:00:00.000Z'); + }); + + it('returns the dek', async () => { + // To pass this test, fill out the dek selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { dek } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(dek, 'Stop “organizing” your emails by subject and start thinking of them in terms of deadlines.'); + }); + + it('returns the lead_image_url', async () => { + // To pass this test, fill out the lead_image_url selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + const { lead_image_url } = await result; + + // Update these values with the expected values from + // the article. + assert.equal(lead_image_url, 'https://images.fastcompany.net/image/upload/w_1280,f_auto,q_auto,fl_lossy/fc/3067012-poster-p-1-the-only-five-email-folders-your-inbox-will-ever-need.jpg'); + }); + + it('returns the content', async () => { + // To pass this test, fill out the content selector + // in ./src/extractors/custom/www.fastcompany.com/index.js. + // You may also want to make use of the clean and transform + // options. + const { content } = await result; + + const $ = cheerio.load(content || ''); + + const first13 = excerptContent($('*').first().text(), 13); + + // Update these values with the expected values from + // the article. + assert.equal(first13, 'For years, my approach to email was like slaying a hydra. For every'); + }); + }); +}); From b6cc346ca510e7640218ca0dc1bb1f2e3d70e227 Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Thu, 10 Jan 2019 15:57:50 +0200 Subject: [PATCH 5/7] fix: eslint error --- src/extractors/custom/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extractors/custom/index.js b/src/extractors/custom/index.js index 1b8c6b9f9..86046fee4 100644 --- a/src/extractors/custom/index.js +++ b/src/extractors/custom/index.js @@ -89,4 +89,4 @@ export * from './gothamist.com'; export * from './www.fool.com'; export * from './www.slate.com'; export * from './ici.radio-canada.ca'; -export * from './www.fastcompany.com'; \ No newline at end of file +export * from './www.fastcompany.com'; From 68d0b45c1264c05d1793d2d80819be9298c5b72d Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Thu, 10 Jan 2019 16:09:34 +0200 Subject: [PATCH 6/7] fix: test for date_published --- src/extractors/custom/www.fastcompany.com/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extractors/custom/www.fastcompany.com/index.test.js b/src/extractors/custom/www.fastcompany.com/index.test.js index fb0be3cda..90838bc30 100644 --- a/src/extractors/custom/www.fastcompany.com/index.test.js +++ b/src/extractors/custom/www.fastcompany.com/index.test.js @@ -55,7 +55,7 @@ describe('WwwFastcompanyComExtractor', () => { // Update these values with the expected values from // the article. - assert.equal(date_published, '2017-01-09T03:00:00.000Z'); + assert.equal(date_published, '2017-01-09T05:00:00.000Z'); }); it('returns the dek', async () => { From 4467713010a32d370c4c8c5ccce9b022556b19b4 Mon Sep 17 00:00:00 2001 From: Wajeeh Date: Fri, 25 Jan 2019 10:23:44 +0200 Subject: [PATCH 7/7] fix: fs import --- src/extractors/custom/www.fastcompany.com/index.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extractors/custom/www.fastcompany.com/index.test.js b/src/extractors/custom/www.fastcompany.com/index.test.js index 90838bc30..521c93a19 100644 --- a/src/extractors/custom/www.fastcompany.com/index.test.js +++ b/src/extractors/custom/www.fastcompany.com/index.test.js @@ -1,5 +1,4 @@ import assert from 'assert'; -import fs from 'fs'; import URL from 'url'; import cheerio from 'cheerio'; @@ -7,6 +6,8 @@ import Mercury from 'mercury'; import getExtractor from 'extractors/get-extractor'; import { excerptContent } from 'utils/text'; +const fs = require('fs'); + describe('WwwFastcompanyComExtractor', () => { describe('initial test case', () => { let result;