Skip to content

Commit 9afce3a

Browse files
committed
fix resetting workspace timeout
1 parent a93e35d commit 9afce3a

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
@@ -1072,7 +1072,7 @@ export class PublicAPIConverter {
10721072
toDurationString(duration?: PartialMessage<Duration>): string {
10731073
const seconds = duration?.seconds || 0;
10741074
if (seconds === 0) {
1075-
return "0";
1075+
return "";
10761076
}
10771077
const totalMilliseconds = Number(seconds) * 1000;
10781078

0 commit comments

Comments
 (0)