mirror of
				https://github.com/MichMich/MagicMirror.git
				synced 2025-11-03 20:55:29 +00:00 
			
		
		
		
	Add test basic-auth
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
const globalSetup = require("../global-setup");
 | 
			
		||||
const serverBasicAuth  = require("../../servers/basic-auth.js");
 | 
			
		||||
const app = globalSetup.app;
 | 
			
		||||
const chai = require("chai");
 | 
			
		||||
const expect = chai.expect;
 | 
			
		||||
@@ -26,4 +27,19 @@ describe("Calendar module", function () {
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	describe("Basic auth", function() {
 | 
			
		||||
		before(function() {
 | 
			
		||||
			serverBasicAuth.listen(8010);
 | 
			
		||||
			// Set config sample for use in test
 | 
			
		||||
			process.env.MM_CONFIG_FILE = "tests/configs/modules/calendar/basic-auth.js";
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		it("Should return TestEvents", function () {
 | 
			
		||||
			return app.client.waitUntilTextExists(".calendar", "TestEvent", 10000);
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user