Fixed test to refer to variables.sh for the architecture.
This commit is contained in:
parent
4894f1abec
commit
afce33e5ff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue