1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-21 16:00:11 +00:00

Update tests.

Knock the dust off the HackMyResume test suite.
This commit is contained in:
hacksalot 2018-01-24 21:29:24 -05:00
parent a243354044
commit efe97ad793
10 changed files with 17 additions and 17 deletions

View File

@ -1308,7 +1308,7 @@
<w:r wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA">
<w:t>contributor, </w:t>
</w:r>
<w:hlink w:dest="http://please.hackmyresume.com">
<w:hlink w:dest="https://fluentdesk.com/hackmyresume">
<w:r wsp:rsidR="009452CA" wsp:rsidRPr="00606071">
<w:rPr>
<w:rStyle w:val="Hyperlink"/>

View File

@ -413,7 +413,7 @@
<div>
<h3><em>Contributor</em>,
<a href="http://please.hackmyresume.com">HackMyResume</a>
<a href="https://fluentdesk.com/hackmyresume">HackMyResume</a>
</h3>
<span class="tenure">2015-09 — Present</span>

View File

@ -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!

Binary file not shown.

View File

@ -423,7 +423,7 @@ a:hover {
</header>
<div>
<h3><em>Contributor</em>,
<a href="http://please.hackmyresume.com">HackMyResume</a>
<a href="https://fluentdesk.com/hackmyresume">HackMyResume</a>
</h3>
<span class="tenure">2015-09 — Present</span>
| <span class="keywords">JavaScript Node.js cross-platform JSON </span>

View File

@ -413,7 +413,7 @@
<div>
<h3><em>Contributor</em>,
<a href="http://please.hackmyresume.com">HackMyResume</a>
<a href="https://fluentdesk.com/hackmyresume">HackMyResume</a>
</h3>
<span class="tenure">2015-09 — Present</span>

View File

@ -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.'

View File

@ -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' } ]
];

View File

@ -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 });

View File

@ -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 });