I've been altering this code for hours and I think it's finally time to ask for help. It's pretty simple, but it doesn't work. I get Customers === undefined
// customers.test.js
import { expect } from 'chai';
import { Customers } from './customers.server.js';
/* eslint-env mocha */
describe('Customers', () => {
it('customers returns 1', () => {
expect(Customers).to.eq(1);
});
});
The above code is working properly, except Customers is undefined. Here's the server controller I'm testing.
// customers.server.js
function test1() {
return 1;
}
export default test1();