MCPcopy
hub / github.com/exceljs/exceljs / assertFont

Function assertFont

test/regression/testBookIn.js:170–184  ·  view source on GitHub ↗
(value, expected, address)

Source from the content-addressed store, hash-verified

168};
169
170const assertFont = function(value, expected, address) {
171 assert(value, `Expected to find font object at ${address}`);
172 _.each(expected, (item, name) => {
173 assert(
174 value[name] === expected[name],
175 `Expected ${address}.font[${name}] to be ${expected[name]}, but was ${value[name]}`
176 );
177 });
178 _.each(value, (item, name) => {
179 assert(
180 expected[name],
181 `Found unexpected ${address}.font[${name}] = ${value[name]}`
182 );
183 });
184};
185
186const assertEqual = function(address, name, value, expected) {
187 assert(

Callers 1

testBookIn.jsFile · 0.70

Calls 2

assertFunction · 0.70
eachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…