(out1, out2, expected, countToCheck)
| 296 | |
| 297 | describe('validateTemplate', function() { |
| 298 | function compareOutputs(out1, out2, expected, countToCheck) { |
| 299 | expect(out2).toEqual(out1); |
| 300 | if(expected) { |
| 301 | expect(countToCheck ? out1.slice(0, countToCheck) : out1) |
| 302 | .toEqual(expected); |
| 303 | } else { |
| 304 | expect(out1).toBeUndefined(); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | function checkValidate(mock, expected, countToCheck) { |
| 309 | var template = mock.layout.template; |
no outgoing calls
no test coverage detected
searching dependent graphs…