From efe97ad793d7751101a81600b08eaaaf5c2ea495 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Wed, 24 Jan 2018 21:29:24 -0500 Subject: [PATCH] Update tests. Knock the dust off the HackMyResume test suite. --- test/expected/modern/resume.doc | 2 +- test/expected/modern/resume.html | 2 +- test/expected/modern/resume.md | 2 +- test/expected/modern/resume.pdf | Bin 132890 -> 132895 bytes test/expected/modern/resume.pdf.html | 2 +- test/expected/modern/resume.png.html | 2 +- test/expected/modern/resume.yml | 2 +- test/scripts/test-dates.js | 14 +++++++------- test/scripts/test-fresh-sheet.js | 6 +++--- test/scripts/test-jrs-sheet.js | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/test/expected/modern/resume.doc b/test/expected/modern/resume.doc index ee06459..85736bb 100644 --- a/test/expected/modern/resume.doc +++ b/test/expected/modern/resume.doc @@ -1308,7 +1308,7 @@ contributor, - + diff --git a/test/expected/modern/resume.html b/test/expected/modern/resume.html index e018e59..96c95be 100644 --- a/test/expected/modern/resume.html +++ b/test/expected/modern/resume.html @@ -413,7 +413,7 @@

Contributor, -HackMyResume +HackMyResume

2015-09 — Present diff --git a/test/expected/modern/resume.md b/test/expected/modern/resume.md index f33392c..beaa553 100644 --- a/test/expected/modern/resume.md +++ b/test/expected/modern/resume.md @@ -47,7 +47,7 @@ Performed IT administration and deployments for Dunder Mifflin. ## PROJECTS -### *Contributor*, [HackMyResume](http://please.hackmyresume.com) (2015-09 — Present) +### *Contributor*, [HackMyResume](https://fluentdesk.com/hackmyresume) (2015-09 — Present) A resume authoring and analysis tool for OS X, Linux, and Windows. Exemplar user for HackMyResume and FluentCV! diff --git a/test/expected/modern/resume.pdf b/test/expected/modern/resume.pdf index 685ffe86fc0e3682bf2cf375ae304f66c47f1ab0..a5a5d392a89a9af5affadd5aaef36cbb0ed0790b 100644 GIT binary patch delta 3031 zcmZuzy-t)-5Y4w5gKG(qQY>gFWaj?Now3wtVWH1p0AqqcB2rj=@deb5#KuRkFlG~8 z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}pK6vom*T;{a9pC@*@sqDke)|6S*^ej3_n&-wa`wTU<=?;GkhIeeUoD^A^E{&M zcl6EC;r7p@YSA!`>3a6-tL4Sv!e@{ES?(^M9q(0lENH`m~FBe5xc zuK$(%V-5(cp}=l11{njANgXJ^MqHI?Js+DCngi;j8T&e2mdOYcG=kw1#t4dda zcX4x7f|`U67)arh`^V*T2B{-PuW_VcN2H&Zebaw0f08(4%~<#38Qn8k?^myJ4uZi| zjmXy$-1T3Ml+GmQfPs`1x1S4FEQwq7c56k)hb>}7cBLS^fDsDpA{^d>$W6}{xa0y; z=iH6p;=h+a(qN26CJdS+9$kf`iE5ET%O?4}Zt8RWlPYw}I$1#0de>k`<+i%Ox8ZP~ z5T28i!1r-{R7kFtZk#So6687)37A-^!A$v zch(w+{RXv!0-D1m(aqACyVb-0qouk%2wOQ6`c#}wB zW!Z+YNM1j;IgDAn_dsFNUBW!P>s?q{>mO#fzG)U#

Contributor, -HackMyResume +HackMyResume

2015-09 — Present | JavaScript Node.js cross-platform JSON diff --git a/test/expected/modern/resume.png.html b/test/expected/modern/resume.png.html index e018e59..96c95be 100644 --- a/test/expected/modern/resume.png.html +++ b/test/expected/modern/resume.png.html @@ -413,7 +413,7 @@

Contributor, -HackMyResume +HackMyResume

2015-09 — Present diff --git a/test/expected/modern/resume.yml b/test/expected/modern/resume.yml index 2cdff83..f7d22cb 100644 --- a/test/expected/modern/resume.yml +++ b/test/expected/modern/resume.yml @@ -36,7 +36,7 @@ projects: title: HackMyResume category: FOSS role: contributor - url: 'http://please.hackmyresume.com' + url: 'https://fluentdesk.com/hackmyresume' start: 2015-09 repo: 'https://github.com/hacksalot/hackmyresume' description: 'A resume authoring and analysis tool for OS X, Linux, and Windows.' diff --git a/test/scripts/test-dates.js b/test/scripts/test-dates.js index 4ebd389..b69045e 100644 --- a/test/scripts/test-dates.js +++ b/test/scripts/test-dates.js @@ -40,9 +40,9 @@ var r = { var tests = [ // single job, concrete start, no end - [ { start: '2010-01-01' } , { val: 6, unit: 'year' } ], - [ { start: '2010-01' } , { val: 6, unit: 'year' } ], - [ { start: '2010' } , { val: 6, unit: 'year' } ], + [ { start: '2010-01-01' } , { val: 8, unit: 'year' } ], + [ { start: '2010-01' } , { val: 8, unit: 'year' } ], + [ { start: '2010' } , { val: 8, unit: 'year' } ], // single job, concrete start, concrete end [ { start: '2010-01-01', end: '2015-01-01' } , { val: 5, unit: 'year' } ], @@ -61,10 +61,10 @@ var tests = [ [ { start: undefined, end: undefined } , { val: 0, unit: 'year' } ], // two jobs (concrete start + end) -> ( concrete start ) - [ { start: '2000-01', end: '2013-01' }, { start: '2013-01' }, { val: 16, unit: 'year' } ], - [ { start: '2000-01', end: '2013-01' }, { start: '2013-01', end: '' }, { val: 16, unit: 'year' } ], - [ { start: '2000-01', end: '2013-01' }, { start: '2013-01', end: null }, { val: 16, unit: 'year' } ], - [ { start: '2000-01', end: '2013-01' }, { start: '2013-01', end: 'current' }, { val: 16, unit: 'year' } ] + [ { start: '2000-01', end: '2013-01' }, { start: '2013-01' }, { val: 18, unit: 'year' } ], + [ { start: '2000-01', end: '2013-01' }, { start: '2013-01', end: '' }, { val: 18, unit: 'year' } ], + [ { start: '2000-01', end: '2013-01' }, { start: '2013-01', end: null }, { val: 18, unit: 'year' } ], + [ { start: '2000-01', end: '2013-01' }, { start: '2013-01', end: 'current' }, { val: 18, unit: 'year' } ] ]; diff --git a/test/scripts/test-fresh-sheet.js b/test/scripts/test-fresh-sheet.js index 67c8123..b04cf56 100644 --- a/test/scripts/test-fresh-sheet.js +++ b/test/scripts/test-fresh-sheet.js @@ -73,14 +73,14 @@ function testResume(opts) { } var sects = [ 'info', 'employment', 'service', 'skills', 'education', 'writing', 'recognition', 'references' ]; -testResume({ title: 'jane-q-fullstacker', path: 'node_modules/fresh-test-resumes/src/fresh/jane-fullstacker.json', duration: 7, sections: sects }); -testResume({ title: 'johnny-trouble-resume', path: 'node_modules/fresh-test-resumes/src/fresh/johnny-trouble.json', duration: 4, sections: sects }); +testResume({ title: 'jane-q-fullstacker', path: 'node_modules/fresh-test-resumes/src/fresh/jane-fullstacker.json', duration: 9, sections: sects }); +testResume({ title: 'johnny-trouble-resume', path: 'node_modules/fresh-test-resumes/src/fresh/johnny-trouble.json', duration: 6, sections: sects }); sects = [ 'info', 'contact', 'location' ]; testResume({ title: 'jane-q-fullstacker A', path: 'node_modules/fresh-test-resumes/src/fresh/override/jane-partial-a.json', duration: 0, sections: sects }); sects = [ 'projects', 'social', 'employment', 'education', 'affiliation' ]; -testResume({ title: 'jane-q-fullstacker B', path: 'node_modules/fresh-test-resumes/src/fresh/override/jane-partial-b.json', duration: 7, sections: sects }); +testResume({ title: 'jane-q-fullstacker B', path: 'node_modules/fresh-test-resumes/src/fresh/override/jane-partial-b.json', duration: 9, sections: sects }); sects = [ 'service', 'skills', 'samples', 'writing', 'reading', 'speaking', 'recognition', 'references', 'testimonials', 'languages', 'interests', 'extracurricular', 'governance' ]; testResume({ title: 'jane-q-fullstacker C', path: 'node_modules/fresh-test-resumes/src/fresh/override/jane-partial-c.json', duration: 0, sections: sects }); diff --git a/test/scripts/test-jrs-sheet.js b/test/scripts/test-jrs-sheet.js index 1b49f11..12cb37f 100644 --- a/test/scripts/test-jrs-sheet.js +++ b/test/scripts/test-jrs-sheet.js @@ -75,7 +75,7 @@ function testResume( opts ) { var sects = [ 'basics', 'work', 'volunteer', 'skills', 'education', 'publications', 'awards', 'references' ]; -testResume({ title: 'jane-q-fullstacker', duration: 7, sections: sects }); +testResume({ title: 'jane-q-fullstacker', duration: 9, sections: sects }); testResume({ title: 'jane-incomplete', duration: 0, sections: _.without(sects, 'awards', 'work') }); testResume({ title: 'richard-hendriks', duration: 1, sections: sects }); testResume({ title: 'empty', duration: 0, sections: [], isValid: false });