60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
63 lines
1.1 KiB
Markdown
63 lines
1.1 KiB
Markdown
concat-map
|
|
==========
|
|
|
|
Concatenative mapdashery.
|
|
|
|
[](http://ci.testling.com/substack/node-concat-map)
|
|
|
|
[](http://travis-ci.org/substack/node-concat-map)
|
|
|
|
example
|
|
=======
|
|
|
|
``` js
|
|
var concatMap = require('concat-map');
|
|
var xs = [ 1, 2, 3, 4, 5, 6 ];
|
|
var ys = concatMap(xs, function (x) {
|
|
return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
|
|
});
|
|
console.dir(ys);
|
|
```
|
|
|
|
***
|
|
|
|
```
|
|
[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]
|
|
```
|
|
|
|
methods
|
|
=======
|
|
|
|
``` js
|
|
var concatMap = require('concat-map')
|
|
```
|
|
|
|
concatMap(xs, fn)
|
|
-----------------
|
|
|
|
Return an array of concatenated elements by calling `fn(x, i)` for each element
|
|
`x` and each index `i` in the array `xs`.
|
|
|
|
When `fn(x, i)` returns an array, its result will be concatenated with the
|
|
result array. If `fn(x, i)` returns anything else, that value will be pushed
|
|
onto the end of the result array.
|
|
|
|
install
|
|
=======
|
|
|
|
With [npm](http://npmjs.org) do:
|
|
|
|
```
|
|
npm install concat-map
|
|
```
|
|
|
|
license
|
|
=======
|
|
|
|
MIT
|
|
|
|
notes
|
|
=====
|
|
|
|
This module was written while sitting high above the ground in a tree.
|