How to use the @nationalbankbelgium/stark-core.StarkBackendAuthenticationTypes.PUBLIC function in @nationalbankbelgium/stark-core

To help you get started, we’ve selected a few @nationalbankbelgium/stark-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NationalBankBelgium / stark / starter / src / app / home / pages / about / about-page.component.spec.ts View on Github external
describe("About", () => {
	/**
	 * Provide our implementations or mocks to the dependency injector
	 */
	let logger: StarkLoggingService;

	const mockBackend: Partial = {
		authenticationType: StarkBackendAuthenticationTypes.PUBLIC,
		name: "logging",
		url: "dummy/url"
	};

	const mockStarkAppConfig: Partial = {
		angularDebugInfoEnabled: true,
		debugLoggingEnabled: true,
		getBackend: jasmine.createSpy("getBackendSpy").and.returnValue(mockBackend)
	};

	beforeEach(() =>
		TestBed.configureTestingModule({
			imports: [StoreModule.forRoot({})],
			providers: [
				/**
				 * Provide a better mock.
github NationalBankBelgium / stark / starter / src / app / home / pages / home / home-page.component.spec.ts View on Github external
describe(`Home`, () => {
	let comp: HomePageComponent;
	let fixture: ComponentFixture;
	let logger: SpyObj;

	const mockBackend: Partial = {
		authenticationType: StarkBackendAuthenticationTypes.PUBLIC,
		name: "logging",
		url: "dummy/url"
	};

	const mockStarkAppConfig: Partial = {
		angularDebugInfoEnabled: true,
		debugLoggingEnabled: true,
		getBackend: jasmine.createSpy("getBackendSpy").and.returnValue(mockBackend)
	};

	/**
	 * async beforeEach.
	 */
	beforeEach(async(() => {
		return (
			TestBed.configureTestingModule({
github NationalBankBelgium / stark / showcase / src / app / welcome / pages / home / home-page.component.spec.ts View on Github external
describe(`Home`, () => {
	let comp: HomePageComponent;
	let fixture: ComponentFixture;
	let logger: SpyObj;

	const mockBackend: Partial = {
		authenticationType: StarkBackendAuthenticationTypes.PUBLIC,
		name: "logging",
		url: "dummy/url"
	};

	const mockStarkAppConfig: Partial = {
		angularDebugInfoEnabled: true,
		debugLoggingEnabled: true,
		getBackend: jasmine.createSpy("getBackendSpy").and.returnValue(mockBackend)
	};

	/**
	 * async beforeEach.
	 */
	beforeEach(async(() => {
		return (
			TestBed.configureTestingModule({