Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { MatButtonModule } from '@angular/material/button';
import { ReactiveFormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { MaterialFileInputModule } from 'ngx-material-file-input';
import { CodeSampleComponent } from './code-sample/code-sample.component';
import { MenuComponent } from './menu/menu.component';
import { UsageComponent } from './usage/usage.component';
import { MatSidenavModule } from '@angular/material/sidenav';
import { MatListModule } from '@angular/material/list';
import { AppearanceComponent } from './appearance/appearance.component';
@NgModule({
imports: [
BrowserModule,
NxModule.forRoot(),
BrowserAnimationsModule,
ReactiveFormsModule,
// Material modules
MatButtonModule,
MatFormFieldModule,
MatIconModule,
MatInputModule,
MatListModule,
MatSidenavModule,
MatToolbarModule,
// Lib Module
MaterialFileInputModule
],
declarations: [
AppComponent,
AppearanceComponent,
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});
it('should return a LoginSuccess action, with user information when login succeeds', () => {
const result: User = {
email: 'test@gmail.com',
token: 'token',
username: 'test',
bio: '',
image: '',
};
const loginAction = AuthActions.login();
const loginSuccessAction = AuthActions.loginSuccess({ user: result });
actions$ = hot('-a---', { a: loginAction });
const response = cold('-a|', { a: result });
const expected = cold('--b', { b: loginSuccessAction });
service.login = jest.fn(() => response);
(expect(effects.login$) as any).toBeObservable(expected);
});
it('should work', async () => {
actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
expect(true).toBeTruthy();
});
});