瀏覽代碼

Tweak test

Jamie Curnow 2 年之前
父節點
當前提交
308a7149ed
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/cypress/integration/api/Hosts.spec.js

+ 1 - 1
test/cypress/integration/api/Hosts.spec.js

@@ -41,7 +41,7 @@ describe('Hosts endpoints', () => {
 			expect(data).to.have.property('enabled');
 			expect(data.enabled).to.be.greaterThan(0);
 			expect(data).to.have.property('meta');
-			expect(data.meta.nginx_online).not.to.exist();
+			expect(typeof data.meta.nginx_online).not.be.equal('undefined');
 		});
 	});