Skip to content

Commit

Permalink
print msg fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
naveedkhan8067 committed Jun 8, 2024
1 parent a240e7b commit 6ea29da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function PrepareMsgString(appMsgString: string): string {
/*
Display message string
*/
export function AdvanceVariantPrint(message: string): void {
export function AdvanceAppPrint(message: string): void {
const msgString = PrepareMsgString(message);
console.log(msgString);
}
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const displayMessage = require("./Main").AdvanceVariantPrint;
const displayMessage = require("./Main").AdvanceAppPrint;

/*
Main function
*/
function main() {
var appAdvanceMsg = "Advance Variant";
var appAdvanceMsg = "Advance App";
displayMessage(appAdvanceMsg);
}

Expand Down
10 changes: 5 additions & 5 deletions src/test/Main.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { expect } from "chai";
import { PrepareMsgString, AdvanceVariantPrint } from "../Main";
import { PrepareMsgString, AdvanceAppPrint } from "../Main";

describe("Advance Variant Tests", async () => {
describe("Advance App Tests", async () => {
it("verify message string", async () => {
const msgString = PrepareMsgString("Advance Variant");
expect(msgString).to.equal("Advance Variant --> *** Windows platform --> Hello-World ***");
AdvanceVariantPrint("Advance Variant");
const msgString = PrepareMsgString("Advance App");
expect(msgString).to.equal("Advance App --> *** Windows platform --> Hello-World ***");
AdvanceAppPrint("Advance App");
});
});

0 comments on commit 6ea29da

Please sign in to comment.