Skip to content

Commit d9a9efe

Browse files
committed
Fix test names.
- Remove spaces in names by using string concatination.
1 parent bbcf4dc commit d9a9efe

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

tests/misc.js

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ describe('literal JSON', () => {
479479
});
480480
});
481481

482-
describe('expansionMap', () => {
482+
describe.only('expansionMap', () => {
483483
describe('unmappedProperty', () => {
484484
it('should be called on unmapped term', async () => {
485485
const docWithUnMappedTerm = {
@@ -614,8 +614,8 @@ describe('expansionMap', () => {
614614
assert.equal(expansionMapCalled, true);
615615
});
616616

617-
it('should be called on relative iri for type\
618-
term in scoped context', async () => {
617+
it('should be called on relative iri for type ' +
618+
'term in scoped context', async () => {
619619
const docWithRelativeIriId = {
620620
'@context': {
621621
'definedType': {
@@ -645,8 +645,8 @@ describe('expansionMap', () => {
645645
assert.equal(expansionMapCalled, true);
646646
});
647647

648-
it('should be called on relative iri for \
649-
type term with multiple relative iri types', async () => {
648+
it('should be called on relative iri for ' +
649+
'type term with multiple relative iri types', async () => {
650650
const docWithRelativeIriId = {
651651
'@context': {
652652
'definedTerm': 'https://example.com#definedTerm'
@@ -669,8 +669,9 @@ describe('expansionMap', () => {
669669
assert.equal(expansionMapCalledTimes, 3);
670670
});
671671

672-
it('should be called on relative iri for \
673-
type term with multiple relative iri types in scoped context', async () => {
672+
it('should be called on relative iri for ' +
673+
'type term with multiple relative iri types in scoped context' +
674+
'', async () => {
674675
const docWithRelativeIriId = {
675676
'@context': {
676677
'definedType': {
@@ -701,8 +702,8 @@ describe('expansionMap', () => {
701702
assert.equal(expansionMapCalledTimes, 3);
702703
});
703704

704-
it('should be called on relative iri for \
705-
type term with multiple types', async () => {
705+
it('should be called on relative iri for ' +
706+
'type term with multiple types', async () => {
706707
const docWithRelativeIriId = {
707708
'@context': {
708709
'definedTerm': 'https://example.com#definedTerm'
@@ -747,8 +748,8 @@ describe('expansionMap', () => {
747748
assert.equal(expansionMapCalled, true);
748749
});
749750

750-
it("should be called on relative iri when \
751-
@base value is './'", async () => {
751+
it("should be called on relative iri when " +
752+
"@base value is './'", async () => {
752753
const docWithRelativeIriId = {
753754
'@context': {
754755
"@base": "./",
@@ -768,8 +769,8 @@ describe('expansionMap', () => {
768769
assert.equal(expansionMapCalled, true);
769770
});
770771

771-
it("should be called on relative iri when \
772-
@base value is './'", async () => {
772+
it("should be called on relative iri when " +
773+
"@base value is './'", async () => {
773774
const docWithRelativeIriId = {
774775
'@context': {
775776
"@base": "./",
@@ -789,8 +790,8 @@ describe('expansionMap', () => {
789790
assert.equal(expansionMapCalled, true);
790791
});
791792

792-
it("should be called on relative iri when \
793-
@vocab value is './'", async () => {
793+
it("should be called on relative iri when " +
794+
"@vocab value is './'", async () => {
794795
const docWithRelativeIriId = {
795796
'@context': {
796797
"@vocab": "./",
@@ -812,8 +813,8 @@ describe('expansionMap', () => {
812813
});
813814

814815
describe('prependedIri', () => {
815-
it("should be called when property is \
816-
being expanded with `@vocab`", async () => {
816+
it("should be called when property is " +
817+
"being expanded with `@vocab`", async () => {
817818
const doc = {
818819
'@context': {
819820
"@vocab": "http://example.com/",
@@ -838,8 +839,8 @@ describe('expansionMap', () => {
838839
assert.equal(expansionMapCalled, true);
839840
});
840841

841-
it("should be called when '@type' is \
842-
being expanded with `@vocab`", async () => {
842+
it("should be called when '@type' is " +
843+
"being expanded with `@vocab`", async () => {
843844
const doc = {
844845
'@context': {
845846
"@vocab": "http://example.com/",
@@ -864,8 +865,8 @@ describe('expansionMap', () => {
864865
assert.equal(expansionMapCalled, true);
865866
});
866867

867-
it("should be called when aliased '@type' is \
868-
being expanded with `@vocab`", async () => {
868+
it("should be called when aliased '@type' is " +
869+
"being expanded with `@vocab`", async () => {
869870
const doc = {
870871
'@context': {
871872
"@vocab": "http://example.com/",
@@ -891,8 +892,8 @@ describe('expansionMap', () => {
891892
assert.equal(expansionMapCalled, true);
892893
});
893894

894-
it("should be called when '@id' is being \
895-
expanded with `@base`", async () => {
895+
it("should be called when '@id' is being " +
896+
"expanded with `@base`", async () => {
896897
const doc = {
897898
'@context': {
898899
"@base": "http://example.com/",
@@ -919,8 +920,8 @@ describe('expansionMap', () => {
919920
assert.equal(expansionMapCalled, true);
920921
});
921922

922-
it("should be called when aliased '@id' \
923-
is being expanded with `@base`", async () => {
923+
it("should be called when aliased '@id' " +
924+
"is being expanded with `@base`", async () => {
924925
const doc = {
925926
'@context': {
926927
"@base": "http://example.com/",
@@ -948,8 +949,8 @@ describe('expansionMap', () => {
948949
assert.equal(expansionMapCalled, true);
949950
});
950951

951-
it("should be called when '@type' is \
952-
being expanded with `@base`", async () => {
952+
it("should be called when '@type' is " +
953+
"being expanded with `@base`", async () => {
953954
const doc = {
954955
'@context': {
955956
"@base": "http://example.com/",
@@ -976,8 +977,8 @@ describe('expansionMap', () => {
976977
assert.equal(expansionMapCalled, true);
977978
});
978979

979-
it("should be called when aliased '@type' is \
980-
being expanded with `@base`", async () => {
980+
it("should be called when aliased '@type' is " +
981+
"being expanded with `@base`", async () => {
981982
const doc = {
982983
'@context': {
983984
"@base": "http://example.com/",

0 commit comments

Comments
 (0)