3 4 describe('Placeholder', () => { 5 test('Label shoud match', () => { 6 const app = Testing.app(); 7 const chart = new MyApp(app, 'test-chart', {env: 'production'}); 8 const results = Testing.synth(chart) 9 expect(results[0]).toHaveProperty('metadata.labels.env', 'production') 10 }) 11 12 test('Production needs 2 replicas', () => { 13 const app = Testing.app(); 14 const chart = new MyApp(app, 'test-chart', {env: 'production'}); 15 const results = Testing.synth(chart) 16 //expect(results[0]).toHaveProperty('spec.replicas', 2) 17 const deploy = results.filter(v => { return v.kind == 'Deployment'}) 18 expect(deploy[0]).toHaveProperty('spec.replicas', 2); 19 }) 20 }); 21