Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const assert = require("assert");
- let moduleProduct = require("../Product");
- describe("product tests", async function() {
- it("return the correct price", async function() {
- let p = new moduleProduct.Product;
- let price = await p.getPrice(
- {
- get: async function() {
- return 100
- }
- }
- );
- assert.equal(price, 100);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement