1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-09 23:37:09 +01:00

test: replace 'resumes/' folder with fresh-test-resumes

This commit is contained in:
hacksalot
2018-02-01 05:58:35 -05:00
parent a265fb633d
commit 7d78deec5f
9 changed files with 8 additions and 596 deletions

View File

@ -24,7 +24,7 @@
14|peek doesnt-exist.json
14|peek doesnt-exist.json not.a.path
15|peek node_modules/fresh-test-resumes/src/fresh/johnny-trouble.broken.json
0|peek test/resumes/jrs-0.0.0/richard-hendriks.json work[0]
0|peek node_modules/fresh-test-resumes/src/jrs/richard-hendriks.json work[0]
0|peek node_modules/fresh-test-resumes/src/fresh/jane-fullstacker.json employment.history[1]
0|peek node_modules/fresh-test-resumes/src/fresh/johnny-trouble.json skills.sets
3|build

View File

@ -32,7 +32,7 @@ function testResume( opts ) {
it('should open without throwing an exception', function () {
var that = this;
function tryOpen() {
var res = ResumeFactory.loadOne( path.normalize( path.join( __dirname, '/../resumes/jrs-0.0.0/' + opts.title + '.json' ) ), { objectify: true } );
var res = ResumeFactory.loadOne( path.normalize( path.join( __dirname, '/../../node_modules/fresh-test-resumes/src/jrs/' + opts.title + '.json' ) ), { objectify: true } );
_sheet = res.rez;
}
tryOpen.should.not.Throw();
@ -75,7 +75,7 @@ function testResume( opts ) {
var sects = [ 'basics', 'work', 'volunteer', 'skills', 'education', 'publications', 'awards', 'references' ];
testResume({ title: 'jane-q-fullstacker', duration: 9, sections: sects });
testResume({ title: 'jane-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 });

View File

@ -124,7 +124,7 @@ genThemes(
genThemes(
'richard-hendriks',
['test/resumes/jrs-0.0.0/richard-hendriks.json'],
['node_modules/fresh-test-resumes/src/jrs/richard-hendriks.json'],
'JRS'
);

View File

@ -101,14 +101,14 @@ var tests = [
],
[ 'validate',
['test/resumes/jrs-0.0.0/richard-hendriks.json'],
['node_modules/fresh-test-resumes/src/jrs/richard-hendriks.json'],
[],
opts2,
' (richard-hendriks.json|JRS)'
],
[ 'validate',
['test/resumes/jrs-0.0.0/jane-incomplete.json'],
['node_modules/fresh-test-resumes/src/jrs/jane-incomplete.json'],
[],
opts2,
' (jane-incomplete.json|JRS)'
@ -130,7 +130,7 @@ var tests = [
],
[ 'analyze',
['test/resumes/jrs-0.0.0/richard-hendriks.json'],
['node_modules/fresh-test-resumes/src/jrs/richard-hendriks.json'],
[],
opts2,
' (richard-hendriks|JRS)'