Skip to content

Instantly share code, notes, and snippets.

View obsd's full-sized avatar
👨‍💻
coding away

Oded BD obsd

👨‍💻
coding away
  • World Wide Web
View GitHub Profile
@obsd
obsd / auth0-custom-universal-login-template.html
Last active March 13, 2024 18:20
Permit.io auth0 login template
<!DOCTYPE html>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Manrope' rel='stylesheet'>
<link rel="shortcut icon" type="image/png"
href="https://yt3.ggpht.com/ej3kSN0C9GiHS5wa2zNQ3Pd59UcnpFeYjnGGBJEub1Nagwl6vpoe21oIJKWjBjzqvHDYtUONCw=s68-c-k-c0x00ffffff-no-rj" />
{%- auth0:head -%}
<style>
@obsd
obsd / store.spec.ts
Last active February 10, 2020 19:40
const middlewares = [];
const mockStoreFactory = configureStore(middlewares);
const store = mockStoreFactory([]);
let discoverAssetsComponent: DashboardDiscoverAssetsWidgetComponent;
describe('select_actions', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [... ],
providers: [... ]
...
fixture = TestBed.createComponent(DatatableFiltersComponent); // component preprerations
component = fixture.debugElement.componentInstance;
component.filterOptions = createFilterOptions();
component.filtersState = [];
});
it('should create pill', async () => { // checking the simplest behaviour
const filterValue = ["a"];
const demoFilter = createFilter(EXAMPLE_FILTER_NAME, filterValue);
import { AppComponent } from './app.component';
describe('AppComponent', () => {
let appComponent = new AppComponent();
it('should create the app', () => {
const app = appComponent;
expect(app).toBeTruthy();
});
describe('LoginComponent', () => {
let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ LoginComponent ]
})
.compileComponents();
}));
describe('Presets reducer', () => {
let state: PresetsState;
let newState: PresetsState;
beforeEach(() => {
state = presetsInitialState;
newState = undefined;
});
it('should change track data', () => {