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

Merge pull request #41 from zhuangya/npm-test

package.json test scripts and travis :)
This commit is contained in:
hacksalot 2015-12-26 21:12:39 -05:00
commit dfa19899b0
14 changed files with 22 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/
tests/sandbox/
docs/
npm-debug.log

8
.travis.yml Normal file
View File

@ -0,0 +1,8 @@
language: node_js
node_js:
- "0.11"
- "0.12"
- "4.0"
- "4.1"
- "4.2"
- "5.0"

View File

@ -1,5 +1,8 @@
HackMyResume
============
[![Build status][travis-image]][travis-url]
*Create polished résumés and CVs in multiple formats from your command line or
shell. Author in clean Markdown and JSON, export to Word, HTML, PDF, LaTeX,
plain text, and other arbitrary formats. Fight the power, save trees. Compatible
@ -302,3 +305,5 @@ MIT. Go crazy. See [LICENSE.md][1] for details.
[fresh]: https://github.com/fluentdesk/FRESH
[fresca]: https://github.com/fluentdesk/FRESCA
[dry]: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself
[travis-image]: https://img.shields.io/travis/palomajs/paloma.svg?style=flat-square
[travis-url]: https://travis-ci.org/hacksalot/HackMyResume

View File

@ -6,6 +6,10 @@
"type": "git",
"url": "https://github.com/hacksalot/HackMyResume.git"
},
"scripts": {
"test": "mocha && grunt",
"grunt": "grunt"
},
"keywords": [
"resume",
"CV",
@ -61,6 +65,7 @@
"devDependencies": {
"chai": "*",
"grunt": "*",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.7.0",
"grunt-contrib-jshint": "^0.11.3",
"grunt-contrib-yuidoc": "^0.10.0",

1
test/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
sandbox/

View File

@ -50,7 +50,7 @@ describe('jane-doe.json (FRESH)', function () {
it('should not be modified after saving', function() {
var savedSheet = new FRESHResume().open('tests/sandbox/jane-q-fullstacker.json');
_sheet.stringify().should.equal( savedSheet.stringify() )
_sheet.stringify().should.equal( savedSheet.stringify() );
});
it('should validate against the FRESH resume schema', function() {

View File

@ -45,7 +45,7 @@ function testResume( opts ) {
it('should not be modified after saving', function() {
var savedSheet = new JRSResume().open( 'tests/sandbox/' + opts.title + '.json' );
_sheet.stringify().should.equal( savedSheet.stringify() )
_sheet.stringify().should.equal( savedSheet.stringify() );
});
it('should ' + (opts.isValid ? '' : 'NOT ') + 'validate against the JSON Resume schema', function() {