projecte_ionic/node_modules/jasmine-spec-reporter/examples/node/spec/node-spec.js
2022-02-09 18:30:03 +01:00

57 lines
1.1 KiB
JavaScript
Executable file

describe('first suite', () => {
it('should be ok', () => {
expect(true).toBe(true);
});
it('should be pending', () => {
pending('will work soon');
expect(true).toBe(true);
});
it('should failed', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
});
describe('second suite', () => {
xit('should be pending', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
describe('first child suite', () => {
describe('first grandchild suite', () => {
it('should failed', () => {
expect(true).toBe(false);
expect(true).toBe(false);
expect(true).toBe(true);
});
it('should failed', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
});
describe('second grandchild suite', () => {
it('should failed', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
});
});
});