damascus 1.0.0 → 1.3.0

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/.eslintrc.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- "extends": "standard"
3
- };
package/.npmignore DELETED
@@ -1,4 +0,0 @@
1
- .idea
2
- node_modules
3
- coverage
4
- package-lock.json
package/.travis.yml DELETED
@@ -1,19 +0,0 @@
1
- sudo: false
2
- language: node_js
3
- cache:
4
- directories:
5
- - node_modules
6
- notifications:
7
- email: true
8
- node_js:
9
- - '8'
10
- before_script:
11
- - npm prune
12
- script:
13
- - npm run lint
14
- - npm run test
15
- after_success:
16
- - npm run semantic-release
17
- branches:
18
- except:
19
- - /^v\d+\.\d+\.\d+$/
package/src/damascus.json DELETED
@@ -1,121 +0,0 @@
1
- [
2
- "Municipality - Ancient City (Old City)",
3
- "Districts Amarah Juwaniyyah",
4
- "Districts Al-Amin",
5
- "Districts Bab Tuma",
6
- "Districts Al-Hamidiyya",
7
- "Districts Al-Hariqa",
8
- "Districts Jura",
9
- "Districts Ma'azanat ash-Shahm",
10
- "Districts Qaymariyya",
11
- "Districts Shaghour al-Juwani",
12
- "Municipality - Barzeh",
13
- "Districts Al-Abbas",
14
- "Districts Barza al-Balad",
15
- "Districts Ish al-Warwar",
16
- "Districts Al-Manara",
17
- "Districts Masakin Barzeh",
18
- "Districts An-Nuzha",
19
- "Municipality - Dummar",
20
- "Districts Al-Arin",
21
- "Districts Dahiyet Dummar",
22
- "Districts Dummar al-Gharbiyah",
23
- "Districts Dummar al-Sharqiyah",
24
- "Districts Al-Wuroud",
25
- "Municipality - Jobar",
26
- "Districts Jobar Gharbi",
27
- "Districts Jobar Sharqi",
28
- "Districts Al-Istiqlal",
29
- "Districts Al-Ma'muniyah",
30
- "Municipality - Qanawat",
31
- "Districts Ansari",
32
- "Districts Bab al-Jabiyah",
33
- "Districts Bab Sreijeh",
34
- "Districts Baramkeh",
35
- "Districts Al-Hijaz",
36
- "Districts Mujtahid",
37
- "Districts Qanawat",
38
- "Districts Qabr Atikah",
39
- "Districts Al-Suwayqah",
40
- "Municipality - Kafr Souseh",
41
- "Districts Fardos",
42
- "Districts Al-Ikhlas",
43
- "Districts Kafr Souseh al-Balad",
44
- "Districts Al-Liwan",
45
- "Districts Mezzeh al-Basatin",
46
- "Districts Al-Waha",
47
- "Municipality - Mezzeh",
48
- "Districts Al-Jalaa",
49
- "Districts Fe'alat al-Gharbiyah",
50
- "Districts Fe'alat al-Sharqiyah",
51
- "Districts Mezzeh 86",
52
- "Districts Mezzeh al-Qadimeh",
53
- "Districts Mezzeh Jabal",
54
- "Districts Al-Rabwa",
55
- "Districts Al-Sumariyah",
56
- "Municipality - Al-Midan",
57
- "Districts Bab Masr",
58
- "Districts Daqaq",
59
- "Districts Al-Haqleh",
60
- "Districts Al-Qa'a",
61
- "Districts Midan al-Wastani",
62
- "Districts Al-Tadamon",
63
- "Districts Az-Zahreh",
64
- "Municipality - Al-Muhajirin",
65
- "Districts Abu Rummaneh",
66
- "Districts A-Haboubi",
67
- "Districts Al-Maliki",
68
- "Districts Al-Marabit",
69
- "Districts Al-Mastaba",
70
- "Districts Al-Rawda",
71
- "Districts Shura",
72
- "Municipality - Qaboun",
73
- "Districts Al-Masaneh'",
74
- "Districts Qaboun",
75
- "Districts Tishrin",
76
- "Municipality - Qadam",
77
- "Districts Al-Asali",
78
- "Districts Dahadil",
79
- "Districts Jouret al-Shreibati",
80
- "Districts Al-Mustafa",
81
- "Districts Al-Qadam",
82
- "Districts Qadam Sharqi",
83
- "Districts Al-Sayyidah Aisha",
84
- "Municipality - Rukn ad-Din",
85
- "Districts Asad ad-Din",
86
- "Districts Ayyubiyah",
87
- "Districts Al-Fayhaa",
88
- "Districts Al-Naqshabandi",
89
- "Municipality - Al-Salihiyah",
90
- "Districts Abu Jarash",
91
- "Districts Al-Madaris",
92
- "Districts Al-Mazra'a",
93
- "Districts Qasyoun",
94
- "Districts Shaykh Muhyi ad-Din",
95
- "Districts Ash-Shuhada",
96
- "Municipality - Sarouja",
97
- "Districts Al-Adwi",
98
- "Districts Amarah al-Barraniyah",
99
- "Districts Fares al-Khoury",
100
- "Districts Masjid Aqsab",
101
- "Districts Al-Qassaa",
102
- "Districts Al-Qusour",
103
- "Districts Al-Uqaybah",
104
- "Districts Sarouja",
105
- "Municipality - Al-Shaghour",
106
- "Districts Bab Sharqi",
107
- "Districts Al-Bilal",
108
- "Districts Ibn Asakir",
109
- "Districts Al-Nidal",
110
- "Districts Rawdat al-Midan",
111
- "Districts Shaghour al-Barrani",
112
- "Districts Al-Wihdeh",
113
- "Districts Az-Zuhur",
114
- "Municipality - Yarmouk",
115
- "Districts Al-Faluja",
116
- "Districts Hittin",
117
- "Districts Al-Karmil",
118
- "Districts An-Naseriyah",
119
- "Districts March 8th",
120
- "Districts Al-Taqqadum"
121
- ]
package/src/index.test.js DELETED
@@ -1,36 +0,0 @@
1
- const describe = require('mocha').describe
2
- const it = require('mocha').it
3
- const expect = require('chai').expect
4
- const damascus = require('./index')
5
-
6
- describe('syria-districts', () => {
7
- describe('all', () => {
8
- it('should be an array of strings', () => {
9
- function isArrayOfStrings (array) {
10
- return array.every(item => typeof item === 'string')
11
- }
12
-
13
- expect(damascus.all).to.satisfy(isArrayOfStrings)
14
- })
15
-
16
- it('should contain `Municipality - Al-Midan`', () => {
17
- expect(damascus.all).to.include('Municipality - Al-Midan')
18
- })
19
- })
20
-
21
- describe('random', () => {
22
- it('should return a random item from the damascus.all', () => {
23
- const randomItem = damascus.random()
24
- expect(damascus.all).to.include(randomItem)
25
- })
26
-
27
- it('should return an array of random items if passed a number', () => {
28
- const randomItems = damascus.random(3)
29
- expect(randomItems).to.have.length(3)
30
-
31
- randomItems.forEach((randomItem) => {
32
- expect(damascus.all).to.include(randomItem)
33
- })
34
- })
35
- })
36
- })