Skip to content
This repository was archived by the owner on Jun 23, 2019. It is now read-only.

Commit f640607

Browse files
authored
Merge pull request #48 from refractproject/greenkeeper/minim-0.21.0
Update minim to the latest version 🚀
2 parents 4cf0233 + 6d12860 commit f640607

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"babel-plugin-array-includes": "^2.0.3",
2424
"chai": "^4.1.2",
25-
"minim": "^0.20.5",
25+
"minim": "^0.21.0",
2626
"peasant": "^1.3.0"
2727
},
2828
"engines": {

test/api-description.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import apiDescription from '../src/api-description';
1111

1212
const namespace = minim.namespace().use(apiDescription);
1313

14+
const ObjectElement = namespace.getElementClass('object');
1415
const Category = namespace.getElementClass('category');
1516
const Copy = namespace.getElementClass('copy');
1617
const Resource = namespace.getElementClass('resource');
@@ -588,7 +589,7 @@ describe('API description namespace', () => {
588589
let object;
589590

590591
beforeEach(() => {
591-
object = new DataStructure({ a: 'a', b: 1, c: [2] });
592+
object = new DataStructure(new ObjectElement({ a: 'a', b: 1, c: [2] }));
592593
});
593594

594595
it('should have element name dataStructure', () => {

test/enum-element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ describe('Enum Element', () => {
1919
});
2020

2121
it('does not set the content', () => {
22-
expect(element.content).to.equal(null);
23-
expect(element.toValue()).to.equal(null);
22+
expect(element.content).to.equal(undefined);
23+
expect(element.toValue()).to.equal(undefined);
2424
});
2525
});
2626

0 commit comments

Comments
 (0)