Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/meta/frappe.meta.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("Frappe Meta Controller", function() {
const validUser = TestManager.primaryUser;
const validPwd = TestManager.primaryUserPwd;

const testDoctype = "Renovation Review";
const testDoctype = "Renovation Dashboard";

this.timeout(10000);

Expand Down Expand Up @@ -77,7 +77,7 @@ describe("Frappe Meta Controller", function() {
});

describe("getDocMeta", function() {
it("should return DocType Obj for Renovation Review", async function() {
it(`should return DocType Obj for ${testDoctype}`, async function() {
const docResponse = await renovation.meta.getDocMeta({
doctype: testDoctype
});
Expand All @@ -86,14 +86,14 @@ describe("Frappe Meta Controller", function() {
expect(docResponse.data.fields).length.gte(0);
});

it("should return DocType Obj for Renovation Review [deprecated]", async function() {
it(`should return DocType Obj for ${testDoctype} [deprecated]`, async function() {
const docResponse = await renovation.meta.getDocMeta(testDoctype);

expect(docResponse.data.doctype).equals(testDoctype);
expect(docResponse.data.fields).length.gte(0);
});

it("should return DocType Obj for Renovation Review [deprecated]", async function() {
it(`should return DocType Obj for ${testDoctype} [deprecated]`, async function() {
const docResponse = await renovation.meta.loadDocType(testDoctype);

expect(docResponse.data.doctype).equals(testDoctype);
Expand Down
10 changes: 5 additions & 5 deletions src/meta/meta.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("Meta Controller", function() {
const validUser = TestManager.primaryUser;
const validPwd = TestManager.primaryUserPwd;

const testDoctype = "Renovation Review";
const testDoctype = "Blogger";

before(async function() {
this.timeout(10000);
Expand All @@ -40,16 +40,16 @@ describe("Meta Controller", function() {
})
);

it("should get the field label of reviewed_by of doctype Renovation Review", async function() {
it(`should get the field label of short_name of doctype ${testDoctype}`, async function() {
const fieldLabel = await renovation.meta.getFieldLabel({
doctype: testDoctype,
fieldname: "reviewed_by"
fieldname: "short_name"
});

expect(fieldLabel).to.be.equal("Reviewed By");
expect(fieldLabel).to.be.equal("Short Name");
});

it("should get the standard field for doctype Renovation Review", async function() {
it(`should get the standard field for doctype ${testDoctype}`, async function() {
const fieldLabel = await renovation.meta.getFieldLabel({
doctype: testDoctype,
fieldname: "name"
Expand Down
Loading