nise
nise copied to clipboard
Fake XHR and fake server
I'm having the following situation: ```js function reloadApp() { $.ajax({url: "first/url"}).then(() => { $.ajax({url: "second/url"}).then(() => updateSomeDOMAttributes()); }).then((r1) => addSomeDOMAttributes()); renderDOMComponent(); } ``` There are two ajax requests nested but...
--- Migrated from https://github.com/sinonjs/sinon/issues/607 Originally created by @terinjokes on *Thu, 20 Nov 2014 00:47:58 GMT* --- FakeXMLHttpRequest's [`send` method](https://github.com/cjohansen/Sinon.JS/blob/239d013e61383ae9c6c393bec38b776f5baee939/lib/sinon/util/fake_xml_http_request.js#L414-L438) currently clobbers the "Content-Type" header if set, by removing anything after...
We need to update the documentation to include the changes made in #35
I've been reverse engineering this library in order to understand why I get this specific error message in my tests. Turned out that this was a race condition of aborted...
`package.json` lists `"module": "nise.js"` as an entrypoint, but the `nise.js` file is a UMD module, not a ES module. Additionally, the shape of the module when I use a ESM...
In Node 18+ `FormData` and `FileReader` have been removed. This PR adds a polyfill for `FormData` and updates the feature detection around `Blob` and `FileReader` to work in Node 18+.
The following is a request parameter that we are using: https://developer.mozilla.org/en-US/docs/Web/API/Request/cache But I'm unable to see it in the tests, here's my simple test: ```js test('should be provided to fetch...
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2. Changelog Sourced from browserify-sign's changelog. v4.2.2 - 2023-10-25 Fixed [Tests] log when openssl doesn't support cipher [#37](https://github.com/crypto-browserify/browserify-sign/issues/37) Commits Only apps should have lockfiles 09a8995...
PR #223 introduced the legacyRoutes flag and set it to be enabled by default to ensure the previous behavior was kept. To enable the new features in the underlying lib,...
update es5-ext: https://github.com/advisories/GHSA-4gmj-3p3h-gm8h