mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-25 05:02:58 +00:00
Fix tests to reflect moving defaults
This commit is contained in:
+103
-3
@@ -360,7 +360,27 @@ describe('Tests for api', ()=>{
|
|||||||
style : undefined,
|
style : undefined,
|
||||||
trashed : false,
|
trashed : false,
|
||||||
updatedAt : undefined,
|
updatedAt : undefined,
|
||||||
views : 0
|
views : 0,
|
||||||
|
bleedSize: {
|
||||||
|
top: '.125in',
|
||||||
|
bottom: '.125in',
|
||||||
|
inner: '.125in',
|
||||||
|
outer: '.125in',
|
||||||
|
},
|
||||||
|
columns: '2',
|
||||||
|
columnGutter: '.125in',
|
||||||
|
legalAuthors: '',
|
||||||
|
license: 'None',
|
||||||
|
safetySpace: {
|
||||||
|
top: '.25in',
|
||||||
|
bottom: '.25in',
|
||||||
|
outer: '.25in',
|
||||||
|
inner: '.5in',
|
||||||
|
},
|
||||||
|
trimSize: {
|
||||||
|
width: '8.5in',
|
||||||
|
height: '11in',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
expect(next).toHaveBeenCalled();
|
expect(next).toHaveBeenCalled();
|
||||||
expect(api.getId).toHaveBeenCalledWith(req);
|
expect(api.getId).toHaveBeenCalledWith(req);
|
||||||
@@ -390,7 +410,27 @@ describe('Tests for api', ()=>{
|
|||||||
tags : ['something', 'fun'],
|
tags : ['something', 'fun'],
|
||||||
renderer : 'v3',
|
renderer : 'v3',
|
||||||
theme : 'phb',
|
theme : 'phb',
|
||||||
googleId : '12345'
|
googleId : '12345',
|
||||||
|
bleedSize: {
|
||||||
|
top: '.125in',
|
||||||
|
bottom: '.125in',
|
||||||
|
inner: '.125in',
|
||||||
|
outer: '.125in',
|
||||||
|
},
|
||||||
|
columns: '2',
|
||||||
|
columnGutter: '.125in',
|
||||||
|
legalAuthors: '',
|
||||||
|
license: 'None',
|
||||||
|
safetySpace: {
|
||||||
|
top: '.25in',
|
||||||
|
bottom: '.25in',
|
||||||
|
outer: '.25in',
|
||||||
|
inner: '.5in',
|
||||||
|
},
|
||||||
|
trimSize: {
|
||||||
|
width: '8.5in',
|
||||||
|
height: '11in',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(result).toEqual(`\`\`\`metadata
|
expect(result).toEqual(`\`\`\`metadata
|
||||||
@@ -434,6 +474,26 @@ brew`);
|
|||||||
renderer : 'v3',
|
renderer : 'v3',
|
||||||
theme : 'phb',
|
theme : 'phb',
|
||||||
googleId : '12345',
|
googleId : '12345',
|
||||||
|
bleedSize: {
|
||||||
|
top: '.125in',
|
||||||
|
bottom: '.125in',
|
||||||
|
inner: '.125in',
|
||||||
|
outer: '.125in',
|
||||||
|
},
|
||||||
|
columns: '2',
|
||||||
|
columnGutter: '.125in',
|
||||||
|
legalAuthors: '',
|
||||||
|
license: 'None',
|
||||||
|
safetySpace: {
|
||||||
|
top: '.25in',
|
||||||
|
bottom: '.25in',
|
||||||
|
outer: '.25in',
|
||||||
|
inner: '.5in',
|
||||||
|
},
|
||||||
|
trimSize: {
|
||||||
|
width: '8.5in',
|
||||||
|
height: '11in',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(result).toEqual(`\`\`\`metadata
|
expect(result).toEqual(`\`\`\`metadata
|
||||||
@@ -591,7 +651,27 @@ brew`);
|
|||||||
title : 'asdf',
|
title : 'asdf',
|
||||||
trashed : false,
|
trashed : false,
|
||||||
updatedAt : undefined,
|
updatedAt : undefined,
|
||||||
views : 0
|
views : 0,
|
||||||
|
bleedSize: {
|
||||||
|
top: '.125in',
|
||||||
|
bottom: '.125in',
|
||||||
|
inner: '.125in',
|
||||||
|
outer: '.125in',
|
||||||
|
},
|
||||||
|
columns: '2',
|
||||||
|
columnGutter: '.125in',
|
||||||
|
legalAuthors: '',
|
||||||
|
license: 'None',
|
||||||
|
safetySpace: {
|
||||||
|
top: '.25in',
|
||||||
|
bottom: '.25in',
|
||||||
|
outer: '.25in',
|
||||||
|
inner: '.5in',
|
||||||
|
},
|
||||||
|
trimSize: {
|
||||||
|
width: '8.5in',
|
||||||
|
height: '11in',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -631,6 +711,14 @@ brew`);
|
|||||||
expect(res.send).toHaveBeenCalledWith({
|
expect(res.send).toHaveBeenCalledWith({
|
||||||
_id : '1',
|
_id : '1',
|
||||||
authors : ['test user'],
|
authors : ['test user'],
|
||||||
|
bleedSize: {
|
||||||
|
top: '.125in',
|
||||||
|
bottom: '.125in',
|
||||||
|
inner: '.125in',
|
||||||
|
outer: '.125in',
|
||||||
|
},
|
||||||
|
columns: '2',
|
||||||
|
columnGutter: '.125in',
|
||||||
createdAt : undefined,
|
createdAt : undefined,
|
||||||
description : '',
|
description : '',
|
||||||
editId : expect.any(String),
|
editId : expect.any(String),
|
||||||
@@ -640,6 +728,14 @@ brew`);
|
|||||||
renderer : 'V3',
|
renderer : 'V3',
|
||||||
lang : 'en',
|
lang : 'en',
|
||||||
shareId : expect.any(String),
|
shareId : expect.any(String),
|
||||||
|
legalAuthors: '',
|
||||||
|
license: 'None',
|
||||||
|
safetySpace: {
|
||||||
|
top: '.25in',
|
||||||
|
bottom: '.25in',
|
||||||
|
outer: '.25in',
|
||||||
|
inner: '.5in',
|
||||||
|
},
|
||||||
googleId : expect.any(String),
|
googleId : expect.any(String),
|
||||||
style : undefined,
|
style : undefined,
|
||||||
tags : [],
|
tags : [],
|
||||||
@@ -649,6 +745,10 @@ brew`);
|
|||||||
thumbnail : '',
|
thumbnail : '',
|
||||||
title : 'asdf',
|
title : 'asdf',
|
||||||
trashed : false,
|
trashed : false,
|
||||||
|
trimSize: {
|
||||||
|
width: '8.5in',
|
||||||
|
height: '11in',
|
||||||
|
},
|
||||||
updatedAt : undefined,
|
updatedAt : undefined,
|
||||||
views : 0
|
views : 0
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user