mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-25 18:00:11 +00:00
Remove extraneous references to "tests" plural.
This commit is contained in:
parent
07b303e530
commit
9423a19842
@ -14,10 +14,10 @@ module.exports = function (grunt) {
|
|||||||
ui: 'bdd',
|
ui: 'bdd',
|
||||||
reporter: 'spec'
|
reporter: 'spec'
|
||||||
},
|
},
|
||||||
all: { src: ['tests/*.js'] }
|
all: { src: ['test/*.js'] }
|
||||||
},
|
},
|
||||||
|
|
||||||
clean: ['tests/sandbox'],
|
clean: ['test/sandbox'],
|
||||||
|
|
||||||
yuidoc: {
|
yuidoc: {
|
||||||
compile: {
|
compile: {
|
||||||
|
@ -43,15 +43,15 @@ describe('Testing CLI interface', function () {
|
|||||||
silent: true
|
silent: true
|
||||||
};
|
};
|
||||||
|
|
||||||
run( 'new', ['tests/sandbox/new-fresh-resume.json'], [], opts, ' (FRESH format)' );
|
run( 'new', ['test/sandbox/new-fresh-resume.json'], [], opts, ' (FRESH format)' );
|
||||||
run( 'new', ['tests/sandbox/new-jrs-resume.json'], [], opts2, ' (JRS format)' );
|
run( 'new', ['test/sandbox/new-jrs-resume.json'], [], opts2, ' (JRS format)' );
|
||||||
run( 'new', ['tests/sandbox/new-1.json', 'tests/sandbox/new-2.json', 'tests/sandbox/new-3.json'], [], opts, ' (multiple FRESH resumes)' );
|
run( 'new', ['test/sandbox/new-1.json', 'test/sandbox/new-2.json', 'test/sandbox/new-3.json'], [], opts, ' (multiple FRESH resumes)' );
|
||||||
run( 'new', ['tests/sandbox/new-jrs-1.json', 'tests/sandbox/new-jrs-2.json', 'tests/sandbox/new-jrs-3.json'], [], opts, ' (multiple JRS resumes)' );
|
run( 'new', ['test/sandbox/new-jrs-1.json', 'test/sandbox/new-jrs-2.json', 'test/sandbox/new-jrs-3.json'], [], opts, ' (multiple JRS resumes)' );
|
||||||
run( 'new', ['tests/sandbox/new-jrs-resume.json'], [], opts2, ' (JRS format)' );
|
run( 'new', ['test/sandbox/new-jrs-resume.json'], [], opts2, ' (JRS format)' );
|
||||||
fail( 'new', [], [], opts, " (when a filename isn't specified)" );
|
fail( 'new', [], [], opts, " (when a filename isn't specified)" );
|
||||||
|
|
||||||
run( 'validate', ['node_modules/jane-q-fullstacker/resume/jane-resume.json'], [], opts, ' (FRESH format)' );
|
run( 'validate', ['node_modules/jane-q-fullstacker/resume/jane-resume.json'], [], opts, ' (FRESH format)' );
|
||||||
run( 'validate', ['tests/sandbox/new-fresh-resume.json'], [], opts, ' (FRESH format)' );
|
run( 'validate', ['test/sandbox/new-fresh-resume.json'], [], opts, ' (FRESH format)' );
|
||||||
|
|
||||||
function run( verb, src, dst, opts, msg ) {
|
function run( verb, src, dst, opts, msg ) {
|
||||||
msg = msg || '.';
|
msg = msg || '.';
|
||||||
|
@ -43,13 +43,13 @@ describe('jane-doe.json (FRESH)', function () {
|
|||||||
|
|
||||||
it('should save without throwing an exception', function(){
|
it('should save without throwing an exception', function(){
|
||||||
function trySave() {
|
function trySave() {
|
||||||
_sheet.save( 'tests/sandbox/jane-q-fullstacker.json' );
|
_sheet.save( 'test/sandbox/jane-q-fullstacker.json' );
|
||||||
}
|
}
|
||||||
trySave.should.not.Throw();
|
trySave.should.not.Throw();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not be modified after saving', function() {
|
it('should not be modified after saving', function() {
|
||||||
var savedSheet = new FRESHResume().open('tests/sandbox/jane-q-fullstacker.json');
|
var savedSheet = new FRESHResume().open('test/sandbox/jane-q-fullstacker.json');
|
||||||
_sheet.stringify().should.equal( savedSheet.stringify() );
|
_sheet.stringify().should.equal( savedSheet.stringify() );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -38,13 +38,13 @@ function testResume( opts ) {
|
|||||||
it('should save without throwing an exception', function() {
|
it('should save without throwing an exception', function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
function trySave() {
|
function trySave() {
|
||||||
_sheet.save( 'tests/sandbox/' + opts.title + '.json' );
|
_sheet.save( 'test/sandbox/' + opts.title + '.json' );
|
||||||
}
|
}
|
||||||
trySave.should.not.Throw();
|
trySave.should.not.Throw();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not be modified after saving', function() {
|
it('should not be modified after saving', function() {
|
||||||
var savedSheet = new JRSResume().open( 'tests/sandbox/' + opts.title + '.json' );
|
var savedSheet = new JRSResume().open( 'test/sandbox/' + opts.title + '.json' );
|
||||||
_sheet.stringify().should.equal( savedSheet.stringify() );
|
_sheet.stringify().should.equal( savedSheet.stringify() );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ describe('Testing themes', function () {
|
|||||||
it( themeName.toUpperCase() + ' theme should generate without throwing an exception', function () {
|
it( themeName.toUpperCase() + ' theme should generate without throwing an exception', function () {
|
||||||
function tryOpen() {
|
function tryOpen() {
|
||||||
var src = ['node_modules/jane-q-fullstacker/resume/jane-resume.json'];
|
var src = ['node_modules/jane-q-fullstacker/resume/jane-resume.json'];
|
||||||
var dst = ['tests/sandbox/' + themeName + '/resume.all'];
|
var dst = ['test/sandbox/' + themeName + '/resume.all'];
|
||||||
var opts = {
|
var opts = {
|
||||||
theme: themeName,
|
theme: themeName,
|
||||||
format: 'FRESH',
|
format: 'FRESH',
|
||||||
|
Loading…
Reference in New Issue
Block a user