mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
minifix: replace succeeded with successful in messages (#2273)
Change-Type: patch
This commit is contained in:
parent
8f969374c7
commit
ee831da52d
@ -52,7 +52,7 @@ module.exports = {
|
||||
*/
|
||||
info: {
|
||||
|
||||
flashComplete: (imageBasename, [ drive ], { failed, succeeded: successful }) => {
|
||||
flashComplete: (imageBasename, [ drive ], { failed, successful }) => {
|
||||
/* eslint-disable no-magic-numbers */
|
||||
const targets = []
|
||||
if (failed + successful === 1) {
|
||||
|
@ -10,7 +10,7 @@ describe('Browser: progressStatus', function () {
|
||||
this.state = {
|
||||
flashing: 1,
|
||||
verifying: 0,
|
||||
succeeded: 0,
|
||||
successful: 0,
|
||||
failed: 0,
|
||||
percentage: 0,
|
||||
eta: 15,
|
||||
|
@ -34,7 +34,7 @@ describe('Browser: WindowProgress', function () {
|
||||
this.state = {
|
||||
flashing: 1,
|
||||
verifying: 0,
|
||||
succeeded: 0,
|
||||
successful: 0,
|
||||
failed: 0,
|
||||
percentage: 85,
|
||||
speed: 100
|
||||
|
@ -243,7 +243,7 @@ describe('Browser: MainPage', function () {
|
||||
flashState.setProgressState({
|
||||
flashing: 1,
|
||||
verifying: 0,
|
||||
succeeded: 0,
|
||||
successful: 0,
|
||||
failed: 0,
|
||||
percentage: 85,
|
||||
eta: 15,
|
||||
|
Binary file not shown.
@ -49,7 +49,7 @@ describe('Shared: Messages', function () {
|
||||
it('should use singular when there are single results', function () {
|
||||
const msg = messages.info.flashComplete('image.img', this.drives, {
|
||||
failed: 1,
|
||||
succeeded: 1
|
||||
successful: 1
|
||||
})
|
||||
|
||||
m.chai.expect(msg).to.equal('image.img was successfully flashed to 1 target and failed to be flashed to 1 target')
|
||||
@ -58,7 +58,7 @@ describe('Shared: Messages', function () {
|
||||
it('should use plural when there are multiple results', function () {
|
||||
const msg = messages.info.flashComplete('image.img', this.drives, {
|
||||
failed: 2,
|
||||
succeeded: 2
|
||||
successful: 2
|
||||
})
|
||||
|
||||
m.chai.expect(msg).to.equal('image.img was successfully flashed to 2 targets and failed to be flashed to 2 targets')
|
||||
@ -67,7 +67,7 @@ describe('Shared: Messages', function () {
|
||||
it('should not contain failed target part when there are none', function () {
|
||||
const msg = messages.info.flashComplete('image.img', this.drives, {
|
||||
failed: 0,
|
||||
succeeded: 2
|
||||
successful: 2
|
||||
})
|
||||
|
||||
m.chai.expect(msg).to.equal('image.img was successfully flashed to 2 targets')
|
||||
@ -76,7 +76,7 @@ describe('Shared: Messages', function () {
|
||||
it('should show drive name and description when only target', function () {
|
||||
const msg = messages.info.flashComplete('image.img', this.drives, {
|
||||
failed: 0,
|
||||
succeeded: 1
|
||||
successful: 1
|
||||
})
|
||||
|
||||
m.chai.expect(msg).to.equal('image.img was successfully flashed to My Drive (/dev/disk1)')
|
||||
|
Loading…
x
Reference in New Issue
Block a user