diff --git a/package.json b/package.json index 3e18569..fbc3859 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "grunt-contrib-yuidoc": "^0.10.0", "grunt-simple-mocha": "*", "is-my-json-valid": "^2.12.2", + "jane-q-fullstacker": "fluentdesk/jane-q-fullstacker", "mocha": "*", "resample": "fluentdesk/resample" } diff --git a/tests/test-converter.js b/tests/test-converter.js index 134f086..d66368e 100644 --- a/tests/test-converter.js +++ b/tests/test-converter.js @@ -7,6 +7,7 @@ var chai = require('chai') , FRESHResume = require('../src/core/fresh-resume') , CONVERTER = require('../src/core/convert') , FS = require('fs') + , MKDIRP = require('mkdirp') , _ = require('underscore'); chai.config.includeStack = false; @@ -21,6 +22,7 @@ describe('FRESH/JRS converter', function () { var fileB = path.join( __dirname, 'sandbox/richard-hendriks.json' ); _sheet = new FRESHResume().open( fileA ); + MKDIRP.sync( path.parse(fileB).dir ); _sheet.saveAs( fileB, 'JRS' ); var rawA = FS.readFileSync( fileA, 'utf8' ); diff --git a/tests/test-fresh-sheet.js b/tests/test-fresh-sheet.js index 295f1ed..955c924 100644 --- a/tests/test-fresh-sheet.js +++ b/tests/test-fresh-sheet.js @@ -16,7 +16,7 @@ describe('jane-doe.json (FRESH)', function () { it('should open without throwing an exception', function () { function tryOpen() { _sheet = new FRESHResume().open( - 'node_modules/FRESCA/exemplar/jane-doe.json' ); + 'node_modules/jane-q-fullstacker/resume/jane-resume.json' ); } tryOpen.should.not.Throw(); }); @@ -43,13 +43,13 @@ describe('jane-doe.json (FRESH)', function () { it('should save without throwing an exception', function(){ function trySave() { - _sheet.save( 'tests/sandbox/jane-doe.json' ); + _sheet.save( 'tests/sandbox/jane-q-fullstacker.json' ); } trySave.should.not.Throw(); }); it('should not be modified after saving', function() { - var savedSheet = new FRESHResume().open('tests/sandbox/jane-doe.json'); + var savedSheet = new FRESHResume().open('tests/sandbox/jane-q-fullstacker.json'); _sheet.stringify().should.equal( savedSheet.stringify() ) }); diff --git a/tests/test-jrs-sheet.js b/tests/test-jrs-sheet.js index 815b3aa..ee4b1b1 100644 --- a/tests/test-jrs-sheet.js +++ b/tests/test-jrs-sheet.js @@ -16,7 +16,7 @@ describe('jane-doe.json (JRS)', function () { it('should open without throwing an exception', function () { function tryOpen() { _sheet = new JRSResume().open( - path.join( __dirname, 'resumes/jrs/jane-doe.json' ) ); + path.join( __dirname, 'resumes/jrs/jane-q-fullstacker.json' ) ); } tryOpen.should.not.Throw(); }); @@ -39,13 +39,13 @@ describe('jane-doe.json (JRS)', function () { it('should save without throwing an exception', function(){ function trySave() { - _sheet.save( 'tests/sandbox/jane-doe.json' ); + _sheet.save( 'tests/sandbox/jane-q-fullstacker.json' ); } trySave.should.not.Throw(); }); it('should not be modified after saving', function() { - var savedSheet = new JRSResume().open( 'tests/sandbox/jane-doe.json' ); + var savedSheet = new JRSResume().open( 'tests/sandbox/jane-q-fullstacker.json' ); _sheet.stringify().should.equal( savedSheet.stringify() ) }); diff --git a/tests/test-themes.js b/tests/test-themes.js index c224eda..0bb3ffe 100644 --- a/tests/test-themes.js +++ b/tests/test-themes.js @@ -29,8 +29,8 @@ describe('Testing themes', function () { function genTheme( themeName ) { it( themeName.toUpperCase() + ' theme should generate without throwing an exception', function () { function tryOpen() { - var src = ['node_modules/FRESCA/exemplar/jane-doe.json']; - var dst = ['tests/sandbox/hello-world/resume.all']; + var src = ['node_modules/jane-q-fullstacker/resume/jane-resume.json']; + var dst = ['tests/sandbox/' + themeName + '/resume.all']; var opts = { theme: themeName, format: 'FRESH', @@ -48,5 +48,6 @@ describe('Testing themes', function () { genTheme('modern'); genTheme('minimist'); genTheme('awesome'); + genTheme('positive'); });