Skip to content

Commit 73eba87

Browse files
committed
fix: fix test
1 parent 3309db9 commit 73eba87

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

test/commands/bundle/bundleInstall.test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('package:bundle:install - tests', () => {
109109
});
110110
expect(warnStub.callCount).to.equal(0);
111111
expect(logStub.callCount).to.equal(1);
112-
expect(logStub.args[0]).to.deep.equal(['Successfully installed bundle [08c3i000000fylgAAA]']);
112+
expect(logStub.args[0]).to.deep.equal(['Successfully installed bundle version 1Q83i000000fxw1AAA to test@org.org']);
113113
});
114114

115115
it('should install a package bundle version with wait option', async () => {
@@ -134,7 +134,7 @@ describe('package:bundle:install - tests', () => {
134134
});
135135
expect(warnStub.callCount).to.equal(0);
136136
expect(logStub.callCount).to.equal(1);
137-
expect(logStub.args[0]).to.deep.equal(['Successfully installed bundle [08c3i000000fylgAAA]']);
137+
expect(logStub.args[0]).to.deep.equal(['Successfully installed bundle version 1Q83i000000fxw1AAA to test@org.org']);
138138
});
139139

140140
// This test does very little to test the verbose command except make sure that it is there.
@@ -159,9 +159,8 @@ describe('package:bundle:install - tests', () => {
159159
Error: [],
160160
});
161161
expect(warnStub.callCount).to.equal(0);
162-
expect(logStub.callCount).to.equal(2);
163-
expect(logStub.args[0]).to.deep.equal(['Install status: Success']);
164-
expect(logStub.args[1]).to.deep.equal(['Successfully installed bundle [08c3i000000fylgAAA]']);
162+
expect(logStub.callCount).to.equal(1);
163+
expect(logStub.args[0]).to.deep.equal(['Successfully installed bundle version 1Q83i000000fxw1AAA to test@org.org']);
165164
});
166165

167166
it('should handle queued status', async () => {
@@ -226,7 +225,7 @@ describe('package:bundle:install - tests', () => {
226225
await cmd.run();
227226
assert.fail('the above should throw an error');
228227
} catch (e) {
229-
expect((e as Error).message).to.equal('Encountered errors installing the bundle! Unknown error');
228+
expect((e as Error).message).to.equal('Encountered errors installing the bundle! Bundle installation failed. Run \'sf package bundle install report -i 08c3i000000fylXXXX -o test@org.org\' for more details.');
230229
}
231230
});
232231
});

test/commands/bundle/packageBundleVersionCreate.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('package:bundle:version:create - tests', () => {
125125
});
126126
expect(warnStub.callCount).to.equal(0);
127127
expect(logStub.callCount).to.equal(1);
128-
expect(logStub.args[0]).to.deep.equal(['Successfully created bundle version 05i3i000000fxw1AAA']);
128+
expect(logStub.args[0]).to.deep.equal(['Successfully created bundle version with ID 05i3i000000fxw1AAA']);
129129
});
130130

131131
it('should create a new package bundle version with wait option', async () => {
@@ -154,7 +154,7 @@ describe('package:bundle:version:create - tests', () => {
154154
});
155155
expect(warnStub.callCount).to.equal(0);
156156
expect(logStub.callCount).to.equal(1);
157-
expect(logStub.args[0]).to.deep.equal(['Successfully created bundle version 05i3i000000fxw1AAA']);
157+
expect(logStub.args[0]).to.deep.equal(['Successfully created bundle version with ID 05i3i000000fxw1AAA']);
158158
});
159159

160160
it('should create a new package bundle version with verbose option', async () => {
@@ -182,9 +182,8 @@ describe('package:bundle:version:create - tests', () => {
182182
Ancestor: null,
183183
});
184184
expect(warnStub.callCount).to.equal(0);
185-
expect(logStub.callCount).to.equal(2);
186-
expect(logStub.args[0]).to.deep.equal(['Package Bundle version creation completed with status: Success']);
187-
expect(logStub.args[1]).to.deep.equal(['Successfully created bundle version 05i3i000000fxw1AAA']);
185+
expect(logStub.callCount).to.equal(1);
186+
expect(logStub.args[0]).to.deep.equal(['Successfully created bundle version with ID 05i3i000000fxw1AAA']);
188187
});
189188

190189
it('should handle queued status', async () => {

0 commit comments

Comments
 (0)