Testing updates
- Added client tests, started with the pdabHandler interactions - Updated caps in socket server tests - Updated pdabHandler with uniform 'guild_id' - Updated pdabHandler with production check to launch or not launch the python client -
This commit is contained in:
@@ -90,7 +90,7 @@ after(async () => {
|
||||
describe('Node Core Server Tests', () => {
|
||||
// Test Node Login functionality
|
||||
describe('Node Login', () => {
|
||||
it('should add a new node if it does not exist', async () => {
|
||||
it('Should add a new node if it does not exist', async () => {
|
||||
// Simulate a node login request
|
||||
// Use the getNodeByNuid mock function to simulate checking if node exists
|
||||
const existingNode = await getNodeByNuid(localNodeConfig.node.nuid);
|
||||
@@ -124,7 +124,7 @@ describe('Node Core Server Tests', () => {
|
||||
expect(addedNode).to.have.property('location', localNodeConfig.node.location);
|
||||
expect(addedNode).to.have.deep.property('capabilities', localNodeConfig.node.capabilities);
|
||||
})
|
||||
it('should update a node if it exists', async () => {
|
||||
it('Should update a node if it exists', async () => {
|
||||
// Simulate a node login request
|
||||
// Use the getNodeByNuid mock function to simulate checking if node exists
|
||||
const existingNode = await getNodeByNuid(localNodeConfig.node.nuid);
|
||||
@@ -166,7 +166,7 @@ describe('Node Core Server Tests', () => {
|
||||
|
||||
// Test Node Update functionality
|
||||
describe('Node Update', () => {
|
||||
it('should add a node\'s nearby systems', async () => {
|
||||
it('Should add a node\'s nearby systems', async () => {
|
||||
// Simulate an update request sent from the client to the server
|
||||
|
||||
// Get the existing node in the database
|
||||
@@ -223,7 +223,7 @@ describe('Node Core Server Tests', () => {
|
||||
expect(addedSystem).to.have.property('mode', updatedLocalNodeConfig.nearbySystems['Testing P25 System Name'].mode);
|
||||
});
|
||||
|
||||
it('should update a node and its nearby systems', async () => {
|
||||
it('Should update a node and its nearby systems', async () => {
|
||||
// Get the existing node in the database
|
||||
const existingNode = await getNodeByNuid(localNodeConfig.node.nuid);
|
||||
|
||||
@@ -282,7 +282,7 @@ describe('Node Core Server Tests', () => {
|
||||
});
|
||||
|
||||
describe('Node Disconnect', () => {
|
||||
it('should trigger cleanup actions upon socket disconnection', async () => {
|
||||
it('Should trigger cleanup actions upon socket disconnection', async () => {
|
||||
// Write test code to simulate a socket disconnection
|
||||
// Check if the appropriate cleanup actions are triggered
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user