Commits

Tim Donohue authored and GitHub committed ff0291d3460 Merge
Merge pull request #1222 from atmire/w2p-79730_Fix-search-sidebar-a11y-issues

Fix search sidebar a11y issues
No tags
gidlmaster

src/app/core/shared/sequence.service.spec.ts

Added
1 +/**
2 + * The contents of this file are subject to the license and copyright
3 + * detailed in the LICENSE and NOTICE files at the root of the source
4 + * tree and available online at
5 + *
6 + * http://www.dspace.org/license/
7 + */
8 +import { SequenceService } from './sequence.service';
9 +
10 +let service: SequenceService;
11 +
12 +describe('SequenceService', () => {
13 + beforeEach(() => {
14 + service = new SequenceService();
15 + });
16 +
17 + it('should return sequential numbers on next(), starting with 1', () => {
18 + const NUMBERS = [1,2,3,4,5];
19 + const sequence = NUMBERS.map(() => service.next());
20 + expect(sequence).toEqual(NUMBERS);
21 + });
22 +});

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut