mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-02 22:43:57 +01:00
npm run format
This commit is contained in:
parent
aee8249ffa
commit
3efbc57617
@ -18,7 +18,9 @@ describe("SelfServeUtils", () => {
|
|||||||
public onRefresh: () => Promise<RefreshResult>;
|
public onRefresh: () => Promise<RefreshResult>;
|
||||||
public getSelfServeType = (): SelfServeType => getSelfServeTypeExample();
|
public getSelfServeType = (): SelfServeType => getSelfServeTypeExample();
|
||||||
}
|
}
|
||||||
expect(() => new SelfServeExample().toSelfServeDescriptor()).toThrow("initialize() was not declared for the class 'SelfServeExample'");
|
expect(() => new SelfServeExample().toSelfServeDescriptor()).toThrow(
|
||||||
|
"initialize() was not declared for the class 'SelfServeExample'",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
it("onSave should be declared for self serve classes", () => {
|
it("onSave should be declared for self serve classes", () => {
|
||||||
class SelfServeExample extends SelfServeBaseClass {
|
class SelfServeExample extends SelfServeBaseClass {
|
||||||
@ -27,7 +29,9 @@ describe("SelfServeUtils", () => {
|
|||||||
public onRefresh: () => Promise<RefreshResult>;
|
public onRefresh: () => Promise<RefreshResult>;
|
||||||
public getSelfServeType = (): SelfServeType => getSelfServeTypeExample();
|
public getSelfServeType = (): SelfServeType => getSelfServeTypeExample();
|
||||||
}
|
}
|
||||||
expect(() => new SelfServeExample().toSelfServeDescriptor()).toThrow("onSave() was not declared for the class 'SelfServeExample'");
|
expect(() => new SelfServeExample().toSelfServeDescriptor()).toThrow(
|
||||||
|
"onSave() was not declared for the class 'SelfServeExample'",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("onRefresh should be declared for self serve classes", () => {
|
it("onRefresh should be declared for self serve classes", () => {
|
||||||
@ -37,7 +41,9 @@ describe("SelfServeUtils", () => {
|
|||||||
public onRefresh: () => Promise<RefreshResult>;
|
public onRefresh: () => Promise<RefreshResult>;
|
||||||
public getSelfServeType = (): SelfServeType => getSelfServeTypeExample();
|
public getSelfServeType = (): SelfServeType => getSelfServeTypeExample();
|
||||||
}
|
}
|
||||||
expect(() => new SelfServeExample().toSelfServeDescriptor()).toThrow("onRefresh() was not declared for the class 'SelfServeExample'");
|
expect(() => new SelfServeExample().toSelfServeDescriptor()).toThrow(
|
||||||
|
"onRefresh() was not declared for the class 'SelfServeExample'",
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("@IsDisplayable decorator must be present for self serve classes", () => {
|
it("@IsDisplayable decorator must be present for self serve classes", () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user