2.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.6 KiB
		
	
	
	
	
	
	
	
id, title, localeTitle, challengeType
| id | title | localeTitle | challengeType | 
|---|---|---|---|
| 587d7fb5367417b2b2512c02 | Use the Tilde-Character to Always Use the Latest Patch Version of a Dependency | استخدم حرف التلدة إلى استخدام أحدث إصدار تصحيح من تبعية | 2 | 
Description
"some-package-name": "~1.3.8" allows updates to any 1.3.x version. 
إرشادات 
استخدم حرف التلدة (~) لبدء إصدار اللحظة في تبعياتك والسماح لـ npm بتحديثه إلى أي إصدار PATCH جديد. 
لاحظ أنه لا يجب تغيير أرقام الإصدارات نفسها. 
Instructions
Tests
tests:
  - text: يجب أن تتضمن "التبعيات" "لحظة"
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/package.json'').then(data => { var packJson = JSON.parse(data); assert.property(packJson.dependencies, ''moment'', ''"dependencies" does not include "moment"''); }, xhr => { throw new Error(xhr.responseText); })'
  - text: يجب أن يتطابق إصدار "اللحظة" "~ 2.10.2"
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/package.json'').then(data => { var packJson = JSON.parse(data); assert.match(packJson.dependencies.moment, /^\~2\.10\.2/, ''Wrong version of "moment". It should be ~2.10.2''); }, xhr => { throw new Error(xhr.responseText); })'
Challenge Seed
Solution
// solution required