@profullstack/auth-system
Version:
Flexible authentication system with user registration, login/logout, password reset, and session management
28 lines (23 loc) • 839 B
JavaScript
/**
* Basic tests for @profullstack/auth-system
*/
import { expect } from 'chai';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
describe('@profullstack/auth-system', function() {
it('should have a package.json file', function() {
const pkgPath = path.join(__dirname, '../package.json');
expect(fs.existsSync(pkgPath)).to.be.true;
const pkgContent = fs.readFileSync(pkgPath, 'utf8');
const pkg = JSON.parse(pkgContent);
expect(pkg).to.be.an('object');
expect(pkg.name).to.equal('@profullstack/auth-system');
});
it('should have a src directory', function() {
const srcDir = path.join(__dirname, '../src');
expect(fs.existsSync(srcDir)).to.be.true;
});
});