mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
feat(app): introduce react configurations [EE-1809] (#5953)
This commit is contained in:
parent
b285219a58
commit
85a6a80722
50 changed files with 8974 additions and 599 deletions
12
app/kubernetes/helpers/stackHelper.test.js
Normal file
12
app/kubernetes/helpers/stackHelper.test.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import KubernetesStackHelper from './stackHelper';
|
||||
|
||||
describe('stacksFromApplications', () => {
|
||||
const { stacksFromApplications } = KubernetesStackHelper;
|
||||
test('should return an empty array when passed an empty array', () => {
|
||||
expect(stacksFromApplications([])).toHaveLength(0);
|
||||
});
|
||||
|
||||
test('should return an empty array when passed a list of applications without stacks', () => {
|
||||
expect(stacksFromApplications([{ StackName: '' }, { StackName: '' }, { StackName: '' }, { StackName: '' }])).toHaveLength(0);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue