// handle unit tests for the "PUT /no-auth/login" request

'use strict';

const LoginTest = require('./login_test');
const InitialDataTest = require('./initial_data_test');
const MeAttributesTest = require('./me_attributes_test');
const ExpiredTokenTest = require('./expired_token_test');
const TokenIsValidTest = require('./token_is_valid_test');
const SubscriptionTest = require('./subscription_test');
const EligibleJoinCompaniesTest = require('./eligible_join_companies_test');
const ClearFirstSessionTest = require('./clear_first_session_test');
const PossibleAuthDomainsTest = require('./possible_auth_domains_test');

class RawLoginRequestTester {

	rawLoginTest () {
		new LoginTest().test();
		new InitialDataTest().test();
		new MeAttributesTest().test();
		new ExpiredTokenTest().test();
		new TokenIsValidTest().test();
		new SubscriptionTest({ which: 'user' }).test();
		new SubscriptionTest({ which: 'team' }).test();
		//new SubscriptionTest({ which: 'stream' }).test(); // subscription to stream channels is deprecated
		new EligibleJoinCompaniesTest().test();
		new ClearFirstSessionTest().test();
		new PossibleAuthDomainsTest().test();
	}
}

module.exports = RawLoginRequestTester;
