mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
fix EndpointLink test
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
This commit is contained in:
parent
242d459685
commit
4f67eb3979
|
@ -33,7 +33,7 @@ describe('EndpointLink', () => {
|
||||||
it('renders an alert if url is invalid', () => {
|
it('renders an alert if url is invalid', () => {
|
||||||
const endpointLink = shallow(<EndpointLink endpoint={'afdsacas'} globalUrl={'afdsacas'} />);
|
const endpointLink = shallow(<EndpointLink endpoint={'afdsacas'} globalUrl={'afdsacas'} />);
|
||||||
const err = endpointLink.find(Alert);
|
const err = endpointLink.find(Alert);
|
||||||
expect(err.render().text()).toEqual('Error: Invalid URL');
|
expect(err.render().text()).toEqual('Error: Invalid URL: afdsacas');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('handles params with multiple values correctly', () => {
|
it('handles params with multiple values correctly', () => {
|
||||||
|
|
Loading…
Reference in a new issue