Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QSI_Groupe1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lydia Tarmelit
QSI_Groupe1
Commits
c06330f3
Commit
c06330f3
authored
1 year ago
by
Lydia Tarmelit
Browse files
Options
Downloads
Patches
Plain Diff
delete tests
parent
3e9bde6e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/registerAssociationTest.jsligo
+0
-29
0 additions, 29 deletions
tests/registerAssociationTest.jsligo
with
0 additions
and
29 deletions
tests/registerAssociationTest.jsligo
deleted
100644 → 0
+
0
−
29
View file @
3e9bde6e
#include "../contracts/AssociationRegistry.jsligo"
const test_registerAssociation = (): void => {
let init_storage: storage = new Map();
// Préparez le paramètre pour enregistrer une nouvelle association
let newAssociation_param: register_params = {
name: "TestAssoc",
description: "Description of TestAssoc",
admin: Some("tz1-test-admin-address" as address)
};
// Simulez l'appel à registerAssociation avec les paramètres ci-dessus
// et un stockage initial vide.
// Remarque : Cette opération est fictive et est destinée à être remplacée
// par votre logique de test réelle.
let simulated_operations: list<operation> = [];
let updatedStorage: storage = new Map();
[simulated_operations, updatedStorage] = registerAssociation(newAssociation_param, init_storage);
// Testez si la nouvelle association a été correctement ajoutée au stockage.
if (!Big_map.mem("TestAssoc", updatedStorage)) {
throw new Error("New association not registered as expected.");
}
};
// Vous pouvez ensuite appeler cette fonction dans un script de test séparé
// ou à partir d'une fonction principale si nécessaire.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment