-
-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve code coverage and remove unused code
- Loading branch information
1 parent
b96cec0
commit a8ef721
Showing
4 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/node-opcua-address-space/test/test_address_space_dispose.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...s/node-opcua-end2end-test/test/end_to_end/u_test_e2e_ read_history_server_capabilities.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import should from "should"; | ||
import { OPCUAClient, readHistoryServerCapabilities } from "node-opcua-client"; | ||
export function t(test: any) { | ||
describe("ReadHistoryServerCapabilities", function () { | ||
it("should read history server capabilities", async () => { | ||
const client = OPCUAClient.create({}); | ||
await client.withSessionAsync(test.endpointUrl, async (session) => { | ||
const cap = await readHistoryServerCapabilities(session); | ||
|
||
console.log(cap); | ||
|
||
cap.accessHistoryDataCapability.value.should.eql(false); | ||
cap.accessHistoryEventsCapability.value.should.eql(false); | ||
|
||
cap.maxReturnDataValues.value.should.eql(0); | ||
cap.maxReturnEventValues.value.should.eql(0); | ||
|
||
cap.deleteAtTimeCapability.value.should.eql(false); | ||
cap.deleteRawCapability.value.should.eql(false); | ||
cap.deleteEventCapability.value.should.eql(false); | ||
// cap.deleteAnnotationCapability.value.should.eql(false); | ||
|
||
cap.insertAnnotationCapability.value.should.eql(false); | ||
cap.insertDataCapability.value.should.eql(false); | ||
cap.insertEventCapability.value.should.eql(false); | ||
|
||
cap.replaceDataCapability.value.should.eql(false); | ||
cap.replaceEventCapability.value.should.eql(false); | ||
// cap.replaceAnnotationCapability.should.eql(false); | ||
|
||
cap.updateEventCapability.value.should.eql(false); | ||
cap.updateDataCapability.value.should.eql(false); | ||
// cap.updateAnnotationCapability.should.eql(false); | ||
|
||
should(cap["aggregateFunctions/AnnotationCount"].value).eql(null); | ||
}); | ||
}); | ||
}); | ||
} |