Skip to content

Template strings eg. backticks not supported #60

Description

@jjj-holger

If Postman test uses template strings like shown below, then these are not parsed correctly because regex used for detecting tests does not take backticks into account.

pm.test(`Should include ${sectorName} in the records list`, function () {
	  const countries = pm.response.json().success.data.countries;
	  const countryUS = countries.find
	    (data => data.name === "United States");
	  const responseSector = countryUS.sectors.find
	    (data => data.name === sectorName);
	  pm.expect(responseSector.name).to.eql(sectorName)
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions