@sprig-and-prose/sprig-universe 0.1.0 → 0.1.1
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 +1 -1
- package/src/graph.js +7 -0
package/package.json
CHANGED
package/src/graph.js
CHANGED
|
@@ -142,6 +142,13 @@ export function buildGraph(fileASTs) {
|
|
|
142
142
|
message: `First describe block for universe "${universeName}" was declared here.`,
|
|
143
143
|
source: existingDescribe.source,
|
|
144
144
|
});
|
|
145
|
+
} else if (!existingDescribe && newDescribeBlock) {
|
|
146
|
+
// Add describe block if it doesn't exist yet
|
|
147
|
+
existingUniverseNode.describe = {
|
|
148
|
+
raw: newDescribeBlock.raw,
|
|
149
|
+
normalized: normalizeProseBlock(newDescribeBlock.raw),
|
|
150
|
+
source: newDescribeBlock.source,
|
|
151
|
+
};
|
|
145
152
|
}
|
|
146
153
|
|
|
147
154
|
// Check for conflicting title blocks
|