Fixed test to refer to variables.sh for the architecture.

This commit is contained in:
Chris Kleeschulte 2016-02-10 15:00:04 -05:00
parent 4894f1abec
commit afce33e5ff
1 changed files with 2 additions and 1 deletions

View File

@ -3,13 +3,14 @@
var should = require('chai').should();
var path = require('path');
var getTarballName = require('../../bin/get-tarball-name');
var execSync = require('child_process').execSync;
describe('#getTarballName', function() {
it('will return the expected tarball name', function() {
var name = getTarballName();
var version = require(path.resolve(__dirname + '../../../package.json')).version;
var platform = process.platform;
var arch = process.arch;
var arch = execSync(path.resolve(__dirname) + '/../../bin/variables.sh arch');
var abi = process.versions.modules;
var expected = 'libbitcoind-' + version + '-node' + abi + '-' + platform + '-' + arch + '.tgz';
name.should.equal(expected);