Here is an example of a test written in Mocha, a popular JavaScript testing framework for Node.js:
const assert = require('assert');
describe('my test', () => {
it('should run a test', () => {
const x = 1;
const y = 1;
assert.equal(x, y);
});
});
This code defines a test using Mocha's describe and it