Advertisement
andreterceiro

Untitled

Oct 18th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const assert = require("assert");
  2. let moduleProduct = require("../Product");
  3.  
  4. describe("product tests", async function() {
  5.      it("return the correct price", async function() {
  6.         let p = new moduleProduct.Product;
  7.         let price = await p.getPrice(
  8.             {
  9.                 get: async function() {
  10.                     return 100
  11.                 }
  12.             }
  13.         );
  14.  
  15.         assert.equal(price, 100);
  16.      });
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement