Browse Source

Fix Licence typo

iorveth 4 years ago
parent
commit
ad2040b2e0

+ 1 - 1
cli/examples/content/createVideo.json

@@ -23,7 +23,7 @@
       "container": "zip",
       "mimeMediaType": "mime media type"
     },
-    "licence": {
+    "license": {
       "code": 1001,
       "attribution": "first",
       "customText": "text"

+ 1 - 1
cli/examples/content/updateVideo.json

@@ -23,7 +23,7 @@
       "container": "zip",
       "mimeMediaType": "mime media type"
     },
-    "licence": {
+    "license": {
       "code": 1001,
       "attribution": "first",
       "customText": "text"

+ 3 - 3
content-metadata-protobuf/src/index.ts

@@ -1,6 +1,6 @@
-// Some helpers for constructing known licences
-import licences from './licenses'
-export { licences }
+// Some helpers for constructing known licenses
+import licenses from './licenses'
+export { licenses }
 
 // protobuf message constructors
 export * from '../compiled/proto/Video_pb'

+ 1 - 1
content-metadata-protobuf/src/licenses.ts

@@ -1,4 +1,4 @@
-// Helper methods to handle joystream defined licence types
+// Helper methods to handle joystream defined license types
 // This should be factored out into a separate package
 
 import LICENSES from './KnownLicenses.json'

+ 2 - 2
content-metadata-protobuf/test/license-codes.ts

@@ -14,7 +14,7 @@ describe('Known License Codes', () => {
   })
 
   it('Pre-defined Joystream license codes', () => {
-    // Make sure we have correct known custom licence
+    // Make sure we have correct known custom license
     assert(KnownLicenses.has(CUSTOM_LICENSE_CODE))
     assert.equal(KnownLicenses.get(CUSTOM_LICENSE_CODE)!.name, 'CUSTOM')
 
@@ -33,7 +33,7 @@ describe('Known License Codes', () => {
     assert.equal(license.getCode(), CUSTOM_LICENSE_CODE)
   })
 
-  it('createKnownLicenseFromCode(): Licence can be created by name', () => {
+  it('createKnownLicenseFromCode(): License can be created by name', () => {
     const licenseCode = getLicenseCodeByName('CC_BY') as number
     const license = createKnownLicenseFromCode(licenseCode as number, 'Attribution: Joystream')
     const videoMeta = new VideoMetadata()

+ 1 - 1
content-metadata-protobuf/test/video.ts

@@ -78,7 +78,7 @@ describe('Video Metadata', () => {
     })
   })
 
-  it('Message: Licence', () => {
+  it('Message: License', () => {
     const license = new License()
 
     const code = 1000