mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
See: https://github.com/resin-io/etcher/pull/1351 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
30c531417a
commit
23a5e53d50
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017 resin.io
|
||||
* Copyright 2016 resin.io
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -39,7 +39,7 @@ describe('Shared: permissions', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix()).to.deep.equal([]);
|
||||
});
|
||||
|
||||
it('should return an empty array environment is an empty object', function() {
|
||||
it('should return an empty array if the environment is an empty object', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix({})).to.deep.equal([]);
|
||||
});
|
||||
|
||||
@ -76,11 +76,11 @@ describe('Shared: permissions', function() {
|
||||
it('should ignore undefined and null variable values', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix({
|
||||
FOO: null,
|
||||
BAR: undefined,
|
||||
BAZ: 'qux'
|
||||
BAR: 'qux',
|
||||
BAZ: undefined
|
||||
})).to.deep.equal([
|
||||
'set',
|
||||
'BAZ=qux',
|
||||
'BAR=qux',
|
||||
'&&',
|
||||
'call'
|
||||
]);
|
||||
@ -122,7 +122,7 @@ describe('Shared: permissions', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix()).to.deep.equal([]);
|
||||
});
|
||||
|
||||
it('should return an empty array environment is an empty object', function() {
|
||||
it('should return an empty array if the environment is an empty object', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix({})).to.deep.equal([]);
|
||||
});
|
||||
|
||||
@ -151,11 +151,11 @@ describe('Shared: permissions', function() {
|
||||
it('should ignore undefined and null variable values', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix({
|
||||
FOO: null,
|
||||
BAR: undefined,
|
||||
BAZ: 'qux'
|
||||
BAR: 'qux',
|
||||
BAZ: undefined
|
||||
})).to.deep.equal([
|
||||
'env',
|
||||
'BAZ=qux'
|
||||
'BAR=qux'
|
||||
]);
|
||||
});
|
||||
|
||||
@ -189,7 +189,7 @@ describe('Shared: permissions', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix()).to.deep.equal([]);
|
||||
});
|
||||
|
||||
it('should return an empty array environment is an empty object', function() {
|
||||
it('should return an empty array if the environment is an empty object', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix({})).to.deep.equal([]);
|
||||
});
|
||||
|
||||
@ -218,11 +218,11 @@ describe('Shared: permissions', function() {
|
||||
it('should ignore undefined and null variable values', function() {
|
||||
m.chai.expect(permissions.getEnvironmentCommandPrefix({
|
||||
FOO: null,
|
||||
BAR: undefined,
|
||||
BAZ: 'qux'
|
||||
BAR: 'qux',
|
||||
BAZ: undefined
|
||||
})).to.deep.equal([
|
||||
'env',
|
||||
'BAZ=qux'
|
||||
'BAR=qux'
|
||||
]);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user