function buildExpectedLogins(aQuery)
{
  return TestData.loginList().filter(
    entry => Object.keys(aQuery).every(name => entry[name] === aQuery[name]));
}
/**
 * Returns a list of new nsILoginInfo objects that are a subset of the test
 * data, built to match the specified query.
 *
 * @param aQuery
 *        Each property and value of this object restricts the search to those
 *        entries from the test data that match the property exactly.
 */
Returns a list of new nsILoginInfo objects that are a subset of the test
data, built to match the specified query.

@param aQuery
Each property and value of this object restricts the search to those
entries from the test data that match the property exactly.
Returns a list of new nsILoginInfo objects that are a subset of the test data built to match the specified query . @param aQuery Each property and value of this object restricts the search to those entries from the test data that match the property exactly .
function buildExpectedLogins(aQuery)
{
  return TestData.loginList().filter(
    entry => Object.keys(aQuery).every(name => entry[name] === aQuery[name]));
}
function buildExpectedLogins ( aQuery ) { return TestData . loginList ( ) . filter ( entry => Object . keys ( aQuery ) . every ( name => entry [ name ] === aQuery [ name ] ) ) ; }
Returns a list of new nsILoginInfo objects that are a subset of the test
 data, built to match the specified query.
Returns a list of new nsILoginInfo objects that are a subset of the test data built to match the specified query .