/** * validate_spec.js * * Run validate on all four main index files * * Usage: * npm install jasmine-node -g * jasmine-node validate_spec.js --verbose * * Copyright (c) 2012 mooster@42at.com * https://github.com/moos/wordpos * * Released under MIT license */ var exec = require('child_process').exec; describe('validate isX() using fastIndex', function() { it('should validate index.noun', function() { exec('node validate index.noun', callback); asyncSpecWait(); }); it('should validate index.verb', function() { exec('node validate index.verb', callback); asyncSpecWait(); }); it('should validate index.adv', function() { exec('node validate index.adv', callback); asyncSpecWait(); }); it('should validate index.adj', function() { exec('node validate index.adj', callback); asyncSpecWait(); }); }); function callback(error, stdout, stderr) { expect(error).toBe(null); console.log(stdout); console.error(stderr); asyncSpecDone(); }