Skip to content

Commit 6071bd0

Browse files
committed
fix resetting workspace timeout
1 parent 6cc550b commit 6071bd0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

components/public-api/typescript-common/src/public-api-converter.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ describe("PublicAPIConverter", () => {
223223
});
224224

225225
describe("toDurationString", () => {
226-
it("should convert with 0", () => {
227-
expect(converter.toDurationString(new Duration())).to.equal("0");
228-
expect(converter.toDurationString(new Duration({ seconds: BigInt(0) }))).to.equal("0");
229-
expect(converter.toDurationString(new Duration({ nanos: 0 }))).to.equal("0");
226+
it("should convert with empty string", () => {
227+
expect(converter.toDurationString(new Duration())).to.equal("");
228+
expect(converter.toDurationString(new Duration({ seconds: BigInt(0) }))).to.equal("");
229+
expect(converter.toDurationString(new Duration({ nanos: 0 }))).to.equal("");
230230
});
231231
it("should convert with hours", () => {
232232
expect(converter.toDurationString(new Duration({ seconds: BigInt(3600) }))).to.equal("1h");

components/public-api/typescript-common/src/public-api-converter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ export class PublicAPIConverter {
10741074
toDurationString(duration?: PartialMessage<Duration>): string {
10751075
const seconds = duration?.seconds || 0;
10761076
if (seconds === 0) {
1077-
return "0";
1077+
return "";
10781078
}
10791079
const totalMilliseconds = Number(seconds) * 1000;
10801080

0 commit comments

Comments
 (0)