Skip to content

Commit

Permalink
chore(bundlemon): Upgrade maxSize of qualification migration
Browse files Browse the repository at this point in the history
  • Loading branch information
trollepierre committed Aug 16, 2022
1 parent 1133fb9 commit 8d4abc3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .bundlemonrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
{
"path": "services/qualificationMigration/drive.js",
"maxSize": "242 KB"
"maxSize": "244 KB"
},
{
"path": "vendors/drive.<hash>.<hash>.min.css",
Expand Down
16 changes: 10 additions & 6 deletions test/dummies/dummyFile.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
// eslint-disable-next-line no-unused-vars
const { IOCozyFile } = require('cozy-client/dist/types')

/**
* Create a dummy file, with overridden value of given param
*
* @param file
* @returns {*&{path: string, name: string, icon: string, id: string, _id: string, dir_id: string, type: string}} a dummy file
* @param {?IOCozyFile} [file={}] - optional file with value to keep
* @returns {IOCozyFile} a dummy file
*/
export const dummyFile = file => ({
_id: 'id-file',
_type: 'doctype-file',
name: 'name',
id: 'id-file',
_id: 'id-file',
icon: 'icon',
path: '/path',
type: 'directory',
...file
})

/**
* Create a dummy note, with overridden value of given param
*
* @param note
* @returns {*&{path: string, name: string, icon: string, id: string, _id: string, dir_id: string, type: string, metadata: object}} a dummy note
* @param {?IOCozyFile} [note={}]
* @returns {IOCozyFile} a dummy note
*/
export const dummyNote = note => ({
...dummyFile(),
Expand Down

0 comments on commit 8d4abc3

Please sign in to comment.