---
# System prepended metadata

title: Integration-tests review

---

# Integration-tests review

## apollo-be.integration.cms.search.spec.js

all tests failing

## apollo-be.integration.incremental.spec.js

### cls attachments (pdf, word, xls, ppt)

```
expect(received).toContain(expected) // indexOf
 
Expected value: "/wkbe/pr/cls/docs/VS300611991"
Received array: ["/wkbe/pr/cls/docs/VS300543891", "/wkbe/pr/cls/docs/VS300543408"]
```

## apollo-be.integration.general.spec.js

### cls document with news dependency

```
- Expected
+ Received

  Object {
-   "/wkbe/pr/cls/docs/VS300611628": false,
+   "/wkbe/pr/cls/docs/VS300611628": true,
  }
```

## lyra.new-and-updated-lawparts.spec.js

### new and updated lawparts should be highlighted in dlc document view

```javascript
expect(newarticles2).toEqual(expect.arrayContaining(['http://wolterskluwer.be/pr/brons/law/110783#37']));
```
> newarticles2 = []

### after review dlc document view returns no highlighted lawparts
```javascript
expect(newarticles1, 'expected at least one new article (part.isNew=true)')
    .not.toHaveLength(0);
```
> newarticles1 = []

## lyra.obsolete-laws.spec.js

### obsolete laws should get an absolete triple during remodeling when identakt/@eind is in the past

```javascript
expect(triples).toContainEqual({
    subject: 'http://wolterskluwer.be/pr/brons/law/5545',
    predicate: 'http://schema.lyra.be/hasExcludedReason',
    object: {datatype: 'http://www.w3.org/2001/XMLSchema#string', value: '0000000202/r3'}
  });
```

### obsolete laws should get an absolete triple during remodeling when brons:status/@opgeheven=true

```javascript
expect(triples).toContainEqual({
    subject: 'http://wolterskluwer.be/pr/brons/law/4346',
    predicate: 'http://schema.lyra.be/hasExcludedReason',
    object: {datatype: 'http://www.w3.org/2001/XMLSchema#string', value: '0000000202/r3'}
  });
```

## lyra.thesaurus-move-split.spec

### when questions are moved by a split, the question order should be retained
:::warning
it's the 'expect' before the split!
:::

```
1 failure: 
1 failed: Error: expect(received).toEqual(expected) // deep equality

- Expected
+ Received

  Array [
    1,
+   1,
    2,
    3,
-   4,
  ]
```