node-spec.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. describe('first suite', () => {
  2. it('should be ok', () => {
  3. expect(true).toBe(true);
  4. });
  5. it('should be pending', () => {
  6. pending('will work soon');
  7. expect(true).toBe(true);
  8. });
  9. it('should failed', () => {
  10. expect(true).toBe(false);
  11. });
  12. it('should be ok', () => {
  13. expect(true).toBe(true);
  14. });
  15. });
  16. describe('second suite', () => {
  17. xit('should be pending', () => {
  18. expect(true).toBe(false);
  19. });
  20. it('should be ok', () => {
  21. expect(true).toBe(true);
  22. });
  23. describe('first child suite', () => {
  24. describe('first grandchild suite', () => {
  25. it('should failed', () => {
  26. expect(true).toBe(false);
  27. expect(true).toBe(false);
  28. expect(true).toBe(true);
  29. });
  30. it('should failed', () => {
  31. expect(true).toBe(false);
  32. });
  33. it('should be ok', () => {
  34. expect(true).toBe(true);
  35. });
  36. });
  37. describe('second grandchild suite', () => {
  38. it('should failed', () => {
  39. expect(true).toBe(false);
  40. });
  41. it('should be ok', () => {
  42. expect(true).toBe(true);
  43. });
  44. });
  45. });
  46. });