raml-suggestions
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -67,5 +67,6 @@ /// <reference path="../../typings/main.d.ts" /> | ||
//this test contains impossible suggestions | ||
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) { | ||
testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
}); | ||
//Commented out invalid test | ||
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) { | ||
// testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
// }); | ||
//this test contains impossible suggestions | ||
@@ -126,3 +127,3 @@ it("User-defined types reference completion for a property inheritance definition. BUG#2612 #2611. FIXME", function (done) { | ||
it("Completion for include path", function (done) { | ||
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas'); | ||
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas/'); | ||
}); | ||
@@ -449,4 +450,19 @@ it("Completion for include files", function (done) { | ||
it("test43", function (done) { | ||
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD'); | ||
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD/'); | ||
}); | ||
it("Overlay extends property", function (done) { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', done, 'extends: a', 'api.raml'); | ||
}); | ||
it("Extension extends property", function (done) { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', done, 'extends: a', 'api.raml'); | ||
}); | ||
it("test55", function (done) { | ||
testCompletionByEntryEnd('basic/test55.raml', done, 'discriminator: l', 'level'); | ||
}); | ||
it("test56", function (done) { | ||
testCompletionByEntryEnd('basic/test56.raml', done, 'application/', 'application/json, application/xml'); | ||
}); | ||
it("test57", function (done) { | ||
testCompletionByEntryEnd('basic/test57.raml', done, 'ty', 'type'); | ||
}); | ||
}); | ||
@@ -453,0 +469,0 @@ function testCompletionByEntryStart(testPath, done, entry, expected) { |
@@ -69,5 +69,6 @@ /// <reference path="../../typings/main.d.ts" /> | ||
//this test contains impossible suggestions | ||
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () { | ||
testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
}); | ||
//Commented out invalid test | ||
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () { | ||
// testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
// }); | ||
//this test contains impossible suggestions | ||
@@ -127,3 +128,3 @@ it("User-defined types reference completion for a property inheritance definition. BUG#2612 #2611. FIXME", function () { | ||
it("Completion for include path", function () { | ||
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas'); | ||
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas/'); | ||
}); | ||
@@ -450,3 +451,3 @@ it("Completion for include files", function () { | ||
it("test43", function () { | ||
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD'); | ||
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD/'); | ||
}); | ||
@@ -475,3 +476,3 @@ it("Reference completion for a property definition", function () { | ||
it("Include folders names", function () { | ||
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas'); | ||
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas/'); | ||
}); | ||
@@ -670,2 +671,17 @@ it("Include file name", function () { | ||
}); | ||
it("Overlay extends property", function () { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', 'extends: a', 'api.raml'); | ||
}); | ||
it("Extension extends property", function () { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', 'extends: a', 'api.raml'); | ||
}); | ||
it("test55", function () { | ||
testCompletionByEntryEnd('basic/test55.raml', 'discriminator: l', 'level'); | ||
}); | ||
it("test56", function () { | ||
testCompletionByEntryEnd('basic/test56.raml', 'application/', 'application/json, application/xml'); | ||
}); | ||
it("test57", function () { | ||
testCompletionByEntryEnd('basic/test57.raml', 'ty', 'type'); | ||
}); | ||
}); | ||
@@ -672,0 +688,0 @@ function testCompletionByEntryStart(testPath, entry, expected) { |
{ | ||
"name": "raml-suggestions", | ||
"version": "0.0.35", | ||
"version": "0.0.36", | ||
"main": "dist/index.js", | ||
@@ -22,3 +22,3 @@ "scripts": { | ||
"underscore": "^1.8.3", | ||
"raml-1-parser": "1.1.26", | ||
"raml-1-parser": "1.1.28", | ||
"fuzzaldrin-plus": "^0.3.1" | ||
@@ -25,0 +25,0 @@ }, |
@@ -87,5 +87,6 @@ /// <reference path="../../typings/main.d.ts" /> | ||
//this test contains impossible suggestions | ||
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) { | ||
testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
}); | ||
//Commented out invalid test | ||
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function (done) { | ||
// testCompletionByEntryEnd('basic/test10.raml', done, '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
// }); | ||
@@ -163,3 +164,3 @@ //this test contains impossible suggestions | ||
it("Completion for include path", function (done) { | ||
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas'); | ||
testCompletionByEntryEnd('basic/test17.raml', done, '\n comic: !include ./XKCD/s', 'schemas/'); | ||
}); | ||
@@ -592,4 +593,24 @@ | ||
it("test43", function (done) { | ||
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD'); | ||
testCompletionByEntryEnd('basic/test43.raml', done, 'X', 'XKCD/'); | ||
}); | ||
it("Overlay extends property", function (done) { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', done, 'extends: a', 'api.raml'); | ||
}); | ||
it("Extension extends property", function (done) { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', done, 'extends: a', 'api.raml'); | ||
}); | ||
it("test55", function (done) { | ||
testCompletionByEntryEnd('basic/test55.raml', done, 'discriminator: l', 'level'); | ||
}); | ||
it("test56", function (done) { | ||
testCompletionByEntryEnd('basic/test56.raml', done, 'application/', 'application/json, application/xml'); | ||
}); | ||
it("test57", function (done) { | ||
testCompletionByEntryEnd('basic/test57.raml', done, 'ty', 'type'); | ||
}); | ||
}); | ||
@@ -596,0 +617,0 @@ |
@@ -90,5 +90,6 @@ /// <reference path="../../typings/main.d.ts" /> | ||
//this test contains impossible suggestions | ||
it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () { | ||
testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
}); | ||
//Commented out invalid test | ||
// it("User-defined types reference completion for a property shortcut inheritance definition. BUG#2611. FIXME", function () { | ||
// testCompletionByEntryEnd('basic/test10.raml', '\n property: [PartOne, Tes', 'TestTypeObject, TestType, TestTypeUnion, TestTypePrimitive, TestType1, TestTypeWithInheritance, TestType2, TestType3'); | ||
// }); | ||
@@ -165,3 +166,3 @@ //this test contains impossible suggestions | ||
it("Completion for include path", function () { | ||
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas'); | ||
testCompletionByEntryEnd('basic/test17.raml', '\n comic: !include ./XKCD/s', 'schemas/'); | ||
}); | ||
@@ -594,3 +595,3 @@ | ||
it("test43", function () { | ||
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD'); | ||
testCompletionByEntryEnd('basic/test43.raml', 'X', 'XKCD/'); | ||
}); | ||
@@ -627,3 +628,3 @@ | ||
it("Include folders names", function () { | ||
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas'); | ||
testCompletionByEntryStart('basic/test44.raml', 'chemas/comic-schema.json', 'schemas/'); | ||
}); | ||
@@ -886,2 +887,22 @@ | ||
}); | ||
it("Overlay extends property", function () { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/overlay.raml', 'extends: a', 'api.raml'); | ||
}); | ||
it("Extension extends property", function () { | ||
testCompletionByEntryEnd('basic/OverlaysAndExtension/extension.raml', 'extends: a', 'api.raml'); | ||
}); | ||
it("test55", function () { | ||
testCompletionByEntryEnd('basic/test55.raml', 'discriminator: l', 'level'); | ||
}); | ||
it("test56", function () { | ||
testCompletionByEntryEnd('basic/test56.raml', 'application/', 'application/json, application/xml'); | ||
}); | ||
it("test57", function () { | ||
testCompletionByEntryEnd('basic/test57.raml', 'ty', 'type'); | ||
}); | ||
}); | ||
@@ -888,0 +909,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1153448
137
24945
+ Addedraml-1-parser@1.1.28(transitive)
+ Addedraml-definition-system@0.0.65(transitive)
+ Addedraml-typesystem@0.0.71(transitive)
+ Addedts-model@0.0.14(transitive)
+ Addedyaml-ast-parser@0.0.34(transitive)
- Removedraml-1-parser@1.1.26(transitive)
- Removedraml-definition-system@0.0.64(transitive)
- Removedraml-typesystem@0.0.70(transitive)
- Removedts-model@0.0.13(transitive)
- Removedyaml-ast-parser@0.0.33(transitive)
Updatedraml-1-parser@1.1.28