Skip to content

Commit

Permalink
Merge pull request #598 from RedHatInsights/master
Browse files Browse the repository at this point in the history
Update prod-beta to recent changes
  • Loading branch information
karelhala authored Feb 5, 2020
2 parents dbc8bdf + 2a6d27c commit 6f45221
Show file tree
Hide file tree
Showing 20 changed files with 774 additions and 119 deletions.
10 changes: 9 additions & 1 deletion config/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ global.window.insights = {
isBeta: () => {
return null;
},
isProd: false,
auth: {
...(window.insights && window.insights.chrome && window.insights.chrome) || {},
getUser: () => new Promise((res) => res({
identity: {
// eslint-disable-next-line camelcase
account_number: '0',
type: 'User'
},
entitlements: {
insights: {
// eslint-disable-next-line camelcase
is_entitled: true
}
}
}))
}
},
getUserPermissions: () => Promise.resolve([])
}
};
Loading

0 comments on commit 6f45221

Please sign in to comment.