testeranto 0.79.25 → 0.79.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "teeny tiny tightly-typed typescript tests",
4
- "version": "0.79.25",
4
+ "version": "0.79.27",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
package/src/Features.ts CHANGED
@@ -54,60 +54,6 @@ export class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
54
54
  }
55
55
  }
56
56
 
57
- export class TesterantoFeatures {
58
- features: Record<string, BaseFeature>;
59
- graphs: {
60
- undirected: TesterantoGraphUndirected[];
61
- directed: TesterantoGraphDirected[];
62
- dags: TesterantoGraphDirectedAcyclic[];
63
- };
64
-
65
- constructor(
66
- features: Record<string, BaseFeature>,
67
- graphs: {
68
- undirected: TesterantoGraphUndirected[];
69
- directed: TesterantoGraphDirected[];
70
- dags: TesterantoGraphDirectedAcyclic[];
71
- }
72
- ) {
73
- this.features = features;
74
- this.graphs = graphs;
75
- }
76
-
77
- networks() {
78
- return [
79
- ...this.graphs.undirected.values(),
80
- ...this.graphs.directed.values(),
81
- ...this.graphs.dags.values(),
82
- ];
83
- }
84
-
85
- toObj() {
86
- return {
87
- features: Object.entries(this.features).map(([name, feature]) => {
88
- return {
89
- ...feature,
90
- inNetworks: this.networks()
91
- .filter((network) => {
92
- return network.graph.hasNode(feature.name);
93
- })
94
- .map((network) => {
95
- return {
96
- network: network.name,
97
- neighbors: network.graph.neighbors(feature.name),
98
- };
99
- }),
100
- };
101
- }),
102
- networks: this.networks().map((network) => {
103
- return {
104
- ...network,
105
- };
106
- }),
107
- };
108
- }
109
- }
110
-
111
57
  export type IT_FeatureNetwork = {
112
58
  name: string;
113
59
  // graph: DirectedGraph
package/src/Types.ts CHANGED
@@ -112,7 +112,6 @@ export type ITestSpecification<
112
112
  },
113
113
  Given: {
114
114
  [K in keyof ITestShape["givens"]]: (
115
- features: string[],
116
115
  whens: BaseWhen<ITestShape>[],
117
116
  thens: BaseThen<ITestShape>[],
118
117
  ...xtrasB: ITestShape["givens"][K]