<Object>default: {count: 0}
To access an Object containing keyed Arrays of File objects, representing any files selected by your user that did not pass validation checks, inspect the invalidproperty.
This is an object with a count property to easily determine how many invalid files exist. Invalid files are grouped by reason.
For example, if there are 4 invalid files, one of each type: the value of the invalidproperty would look like this:
var invalidFiles = fileInputEl.invalid;
expect(invalidFiles).toEqual({
count: 4,
// array containing the 1 file
// with a bad extension
badExtension: [],
// array containing the 1 file with
// a file size that was too large
tooBig: [],
// array containing the 1 file with
// a file size that was too small
tooSmall: [],
// array containing any leftover
// otherwise valid files that exceed
// the number of allowable files
tooMany: []
});