drdgvhbh/node-XMLHttpRequest

View on GitHub
__tests__/ready-state.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { XMLHttpRequest } from '../src';

describe('ready state', () => {
  let xhr: XMLHttpRequest;

  beforeEach(async () => {
    xhr = new XMLHttpRequest();
  });

  it('should be initialized to unset', () => {
    expect(xhr.readyState).toEqual(xhr.UNSENT);
  });
});