How to use hexadecimal method in pact-foundation-pact

Best JavaScript code snippet using pact-foundation-pact

App.js

Source:App.js Github

copy

Full Screen

1import React, { Component } from 'react';2import { StyleSheet, Text, View, FlatList } from 'react-native';3import { render } from 'react-dom';4class App extends Component {5 constructor(props){6 super(props);7 this.state = {8 cores: [9 {id:'1', corLetra:'white', nome: 'Black' , hexadecimal: '#000000', RGB: '(0,0,0)' },10 {id:'2', corLetra:'white', nome: 'grey11' , hexadecimal: '#1C1C1C', RGB: '(28,28,28)' },11 {id:'3', corLetra:'white', nome: 'grey21', hexadecimal: '#363636', RGB: '(54,54,54)' },12 {id:'4',corLetra:'white', nome: 'grey31' , hexadecimal: '#4F4F4F', RGB: '(79,79,79)' },13 {id:'5',corLetra:'white', nome: 'DimGray' , hexadecimal: '#696969', RGB: '(105,105,105)' },14 {id:'6',corLetra:'black', nome: 'Gray', hexadecimal: '#808080', RGB: '(128,128,128)' },15 {id:'7',corLetra:'black', nome: 'DarkGray', hexadecimal: '#A9A9A9', RGB: '(169,169,169)' },16 {id:'8', corLetra:'black', nome: 'Silver', hexadecimal: '#C0C0C0', RGB: '(192,192,192)' },17 {id:'9', corLetra:'black', nome: 'LightGrey', hexadecimal: '#D3D3D3', RGB: '(211,211,211)' },18 {id:'10',corLetra:'black', nome: 'Gainsboro', hexadecimal: '#DCDCDC', RGB: '(220,220,220)' },19 {id:'11',corLetra:'black', nome: 'SlateBlue', hexadecimal: '#6A5ACD', RGB: '(106,90,205)' },20 {id:'12',corLetra:'black', nome: 'SlateBlue1', hexadecimal: '#836FFF', RGB: '(131,111,255)' },21 {id:'13',corLetra:'black', nome: 'SlateBlue3', hexadecimal: '#6959CD', RGB: '(105,89,205)' },22 {id:'14',corLetra:'black', nome: 'DarkSlateBlue', hexadecimal: '#483D8B', RGB: '(72,61,139)' },23 {id:'15',corLetra:'white', nome: 'MidnightBlue', hexadecimal: '#191970', RGB: '(25,25,112)' },24 {id:'16',corLetra:'white', nome: 'Navy', hexadecimal: '#000080', RGB: '(0,0,128)' },25 {id:'17',corLetra:'white', nome: 'DarkBlue', hexadecimal: '#00008B', RGB: '(0,0,139)' },26 {id:'18',corLetra:'black', nome: 'MediumBlue', hexadecimal: '#0000CD', RGB: '(0,0,205)' },27 {id:'19',corLetra:'black', nome: 'Blue', hexadecimal: '#0000FF', RGB: '(0,0,255)' },28 {id:'20',corLetra:'black', nome: 'CornflowerBlue', hexadecimal: '#6495ED', RGB: '(100,149,237)' },29 {id:'21',corLetra:'black', nome: 'RoyalBlue', hexadecimal: '#4169E1', RGB: '(65,105,225)' },30 {id:'22',corLetra:'black', nome: 'DodgerBlue', hexadecimal: '#1E90FF', RGB: '(30,144,255)' },31 {id:'23',corLetra:'black', nome: 'DeepSkyBlue', hexadecimal: '#00BFFF', RGB: '(0,191,255)' },32 {id:'24',corLetra:'black', nome: 'LightSkyBlue', hexadecimal: '#87CEFA', RGB: '(135,206,250)' },33 {id:'25',corLetra:'black', nome: 'SkyBlue', hexadecimal: '#87CEEB', RGB: '(135,206,235)' },34 {id:'26',corLetra:'black', nome: 'LightBlue', hexadecimal: '#ADD8E6', RGB: '(173,216,230)' },35 {id:'27',corLetra:'black', nome: 'SteelBlue', hexadecimal: '#4682B4', RGB: '(70,130,180)' },36 {id:'28',corLetra:'black', nome: 'LightSteelBlue', hexadecimal: '#B0C4DE', RGB: '(176,196,222)' },37 {id:'29',corLetra:'black', nome: 'SlateGray', hexadecimal: '#708090', RGB: '(112,128,144)' },38 {id:'30',corLetra:'black', nome: 'LightSlateGray', hexadecimal: '#778899', RGB: '(119,136,153)' },39 {id:'31',corLetra:'black', nome: 'Aqua / Cyan', hexadecimal: '#00FFFF', RGB: '(0,255,255)' },40 {id:'32',corLetra:'black', nome: 'DarkTurquoise', hexadecimal: '#00CED1', RGB: '(0,206,209)' },41 {id:'33',corLetra:'black', nome: 'Turquoise', hexadecimal: '#40E0D0', RGB: '(64,224,208)' },42 {id:'34',corLetra:'black', nome: 'MediumTurquoise', hexadecimal: '#48D1CC', RGB: '(72,209,204)' },43 {id:'35',corLetra:'black', nome: 'LightSeaGreen', hexadecimal: '#20B2AA', RGB: '(32,178,170)' },44 {id:'36',corLetra:'black', nome: 'DarkCyan', hexadecimal: '#008B8B', RGB: '(0,139,139)' },45 {id:'37',corLetra:'black', nome: 'Teal', hexadecimal: '#008080', RGB: '(0,128,128)' },46 {id:'38',corLetra:'black', nome: 'Aquamarine', hexadecimal: '#7FFFD4', RGB: '(127,255,212)' },47 {id:'39',corLetra:'black', nome: 'MediumAquamarine', hexadecimal: '#66CDAA', RGB: '(102,205,170)' },48 {id:'40',corLetra:'black', nome: 'CadetBlue', hexadecimal: '#5F9EA0', RGB: '(95,158,160)' },49 {id:'41',corLetra:'white', nome: 'DarkSlateGray', hexadecimal: '#2F4F4F', RGB: '(47,79,79)' },50 {id:'42',corLetra:'black', nome: 'MediumSpringGreen', hexadecimal: '#00FA9A', RGB: '(0,250,154)' },51 {id:'43',corLetra:'black', nome: 'SpringGreen', hexadecimal: '#00FF7F', RGB: '(0,255,127)' },52 {id:'44',corLetra:'black', nome: 'PaleGreen', hexadecimal: '#98FB98', RGB: '(152,251,152)' },53 {id:'45',corLetra:'black', nome: 'LightGreen', hexadecimal: '#90EE90', RGB: '(144,238,144)' },54 {id:'46',corLetra:'black', nome: 'DarkSeaGreen', hexadecimal: '#8FBC8F', RGB: '(143,188,143)' },55 {id:'47',corLetra:'black', nome: 'MediumSeaGreen', hexadecimal: '#3CB371', RGB: '(60,179,113)' },56 {id:'48',corLetra:'black', nome: 'SeaGreen', hexadecimal: '#2E8B57', RGB: '(46,139,87)' },57 {id:'49',corLetra:'white', nome: 'DarkGreen', hexadecimal: '#006400', RGB: '(0,100,0)' },58 {id:'50',corLetra:'black', nome: 'Green', hexadecimal: '#008000', RGB: '(0,128,0)' },59 {id:'51',corLetra:'black', nome: 'ForestGreen', hexadecimal: '#228B22', RGB: '(34,139,34)' },60 {id:'52',corLetra:'black', nome: 'LimeGreen', hexadecimal: '#32CD32', RGB: '(50,205,50)' },61 {id:'53',corLetra:'black', nome: 'Lime', hexadecimal: '#00FF00', RGB: '(0,255,0)' },62 {id:'54',corLetra:'black', nome: 'LawnGreen', hexadecimal: '#7CFC00', RGB: '(124,252,0)' },63 {id:'55',corLetra:'black', nome: 'Chartreuse', hexadecimal: '#7FFF00', RGB: '(127,255,0)' },64 {id:'56',corLetra:'black', nome: 'GreenYellow', hexadecimal: '#ADFF2F', RGB: '(173,255,47)' },65 {id:'57',corLetra:'black', nome: 'YellowGreen', hexadecimal: '#9ACD32', RGB: '(154,205,50)' },66 {id:'58',corLetra:'black', nome: 'OliveDrab', hexadecimal: '6B8E23', RGB: '(107,142,35)' },67 {id:'59',corLetra:'white', nome: 'DarkOliveGreen', hexadecimal: '#556B2F', RGB: '(85,107,47)' },68 {id:'60',corLetra:'white', nome: 'Olive', hexadecimal: '#808000', RGB: '(128,128,0)' },69 {id:'61',corLetra:'black', nome: 'DarkKhaki', hexadecimal: '#BDB76B', RGB: '(189,83,107)' },70 {id:'62',corLetra:'black', nome: 'Goldenrod', hexadecimal: '#DAA520', RGB: '(218,165,32)' },71 {id:'63',corLetra:'black', nome: 'DarkGoldenrod', hexadecimal: '#B8860B', RGB: '(184,134,11)' },72 {id:'64',corLetra:'white', nome: 'SaddleBrown', hexadecimal: '#8B4513', RGB: '(139,69,19)' },73 {id:'65',corLetra:'black', nome: 'Sienna', hexadecimal: '#A0522D', RGB: '(160,82,45)' },74 {id:'66',corLetra:'black', nome: 'RosyBrown', hexadecimal: '#BC8F8F', RGB: '(188,143,143)' },75 {id:'67',corLetra:'black', nome: 'Peru', hexadecimal: '#CD853F', RGB: '(205,133,63)' },76 {id:'68',corLetra:'black', nome: 'Chocolate', hexadecimal: '#D2691E', RGB: '(210,105,30)' },77 {id:'69',corLetra:'black', nome: 'SandyBrown', hexadecimal: '#F4A460', RGB: '(244,164,96)' },78 {id:'70',corLetra:'black', nome: 'NavajoWhite', hexadecimal: '#FFDEAD', RGB: '(255,222,173)' },79 {id:'71',corLetra:'black', nome: 'Wheat', hexadecimal: '#F5DEB3', RGB: '(245,222,179)' },80 {id:'72',corLetra:'black', nome: 'BurlyWood', hexadecimal: '#DEB887', RGB: '(222,184,135)' },81 {id:'73',corLetra:'black', nome: 'Tan', hexadecimal: '#D2B48C', RGB: '(210,180,140)' },82 {id:'74',corLetra:'black', nome: 'MediumSlateBlue', hexadecimal: '#7B68EE', RGB: '(123,104,238)' },83 {id:'75',corLetra:'black', nome: 'MediumPurple', hexadecimal: '#9370DB', RGB: '(147,112,219)' },84 {id:'76',corLetra:'black', nome: 'BlueViolet', hexadecimal: '#8A2BE2', RGB: '(138,43,226)' },85 {id:'77',corLetra:'white', nome: 'Indigo', hexadecimal: '#4B0082', RGB: '(75,0,130)' },86 {id:'78',corLetra:'black', nome: 'DarkViolet', hexadecimal: '#9400D3', RGB: '(148,0,211)' },87 {id:'79',corLetra:'black', nome: 'DarkOrchid', hexadecimal: '#9932CC', RGB: '(153,50,204)' },88 {id:'80',corLetra:'black', nome: 'MediumOrchid', hexadecimal: '#BA55D3', RGB: '(186,85,211)' },89 {id:'81',corLetra:'black', nome: 'Purple', hexadecimal: '#A020F0', RGB: '(128,0,128)' },90 {id:'82',corLetra:'white', nome: 'DarkMagenta', hexadecimal: '#8B008B', RGB: '(139,0,139)' },91 {id:'83',corLetra:'black', nome: 'Fuchsia / Magenta', hexadecimal: '#FF00FF', RGB: '(255,0,255)' },92 {id:'84',corLetra:'black', nome: 'Violet', hexadecimal: '#EE82EE', RGB: '(238,130,238)' },93 {id:'85',corLetra:'black', nome: 'Orchid', hexadecimal: '#DA70D6', RGB: '(218,112,214)' },94 {id:'86',corLetra:'black', nome: 'Plum', hexadecimal: '#DDA0DD', RGB: '(221,160,221)' },95 {id:'87',corLetra:'black', nome: 'MediumVioletRed', hexadecimal: '#C71585', RGB: '(199,21,133)' },96 {id:'88',corLetra:'black', nome: 'DeepPink', hexadecimal: '#FF1493', RGB: '(255,20,147)' },97 {id:'89',corLetra:'black', nome: 'HotPink', hexadecimal: '#FF69B4', RGB: '(255,105,180)' },98 {id:'90',corLetra:'black', nome: 'PaleVioletRed', hexadecimal: '#DB7093', RGB: '(219,112,147)' },99 {id:'91',corLetra:'black', nome: 'LightPink', hexadecimal: '#FFB6C1', RGB: '(255,182,193)' },100 {id:'92',corLetra:'black', nome: 'Pink', hexadecimal: '#FFC0CB', RGB: '(255,192,203)' },101 {id:'93',corLetra:'black', nome: 'LightCoral', hexadecimal: '#F08080', RGB: '(240,128,128)' },102 {id:'94',corLetra:'black', nome: 'IndianRed', hexadecimal: '#CD5C5C', RGB: '(205,92,92)' },103 {id:'95',corLetra:'black', nome: 'Crimson', hexadecimal: '#DC143C', RGB: '(220,20,60)' },104 {id:'96',corLetra:'white', nome: 'Maroon', hexadecimal: '#800000', RGB: '(128,0,0)' },105 {id:'97',corLetra:'white', nome: 'DarkRed', hexadecimal: '#8B0000', RGB: '(139,0,0)' },106 {id:'98',corLetra:'black', nome: 'FireBrick', hexadecimal: '#B22222', RGB: '(178,34,34)' },107 {id:'99',corLetra:'black', nome: 'Brown', hexadecimal: '#A52A2A', RGB: '(165,42,42)' },108 {id:'100',corLetra:'black', nome: 'Salmon', hexadecimal: '#FA8072', RGB: '(250,128,114)' },109 {id:'101',corLetra:'black', nome: 'DarkSalmon', hexadecimal: '#E9967A', RGB: '(233,150,122)' },110 {id:'102',corLetra:'black', nome: 'LightSalmon', hexadecimal: '#FFA07A', RGB: '(255,160,122)' },111 {id:'103',corLetra:'black', nome: 'Coral', hexadecimal: '#FF7F50', RGB: '(255,127,80)' },112 {id:'104',corLetra:'black', nome: 'Tomato', hexadecimal: '#FF6347', RGB: '(255,99,71)' },113 {id:'105',corLetra:'black', nome: 'Red', hexadecimal: '#FF0000', RGB: '(255,0,0)' },114 {id:'106',corLetra:'black', nome: 'OrangeRed', hexadecimal: '#FF4500', RGB: '(255,69,0)' },115 {id:'107',corLetra:'black', nome: 'DarkOrange', hexadecimal: '#FF8C00', RGB: '(255,140,0)' },116 {id:'108',corLetra:'black', nome: 'Orange', hexadecimal: '#FFA500', RGB: '(255,165,0)' },117 {id:'121',corLetra:'black', nome: 'Gold', hexadecimal: '#FFD700', RGB: '(255,215,0)' },118 {id:'122',corLetra:'black', nome: 'Yellow', hexadecimal: '#FFFF00', RGB: '(255,255,0)' },119 {id:'123',corLetra:'black', nome: 'Khaki', hexadecimal: '#F0E68C', RGB: '(240,230,140)' },120 {id:'124',corLetra:'black', nome: 'AliceBlue', hexadecimal: '#F0F8FF', RGB: '(240,248,255)' },121 {id:'125',corLetra:'black', nome: 'GhostWhite', hexadecimal: '#F8F8FF', RGB: '(248,248,255)' },122 {id:'126',corLetra:'black', nome: 'Snow', hexadecimal: '#FFFAFA', RGB: '(255,250,250)' },123 {id:'127',corLetra:'black', nome: 'Seashell', hexadecimal: '#FFF5EE', RGB: '(255,245,238)' },124 {id:'128',corLetra:'black', nome: 'FloralWhite', hexadecimal: '#FFFAF0', RGB: '(255,250,240)' },125 {id:'129',corLetra:'black', nome: 'WhiteSmoke', hexadecimal: '#F5F5F5', RGB: '(245,245,245)' },126 {id:'130',corLetra:'black', nome: 'Beige', hexadecimal: '#F5F5DC', RGB: '(245,245,220)' },127 {id:'131',corLetra:'black', nome: 'OldLace', hexadecimal: '#FDF5E6', RGB: '(253,245,230)' },128 {id:'132',corLetra:'black', nome: 'Ivory', hexadecimal: '#FFFFF0', RGB: '(255,255,240)' },129 {id:'133',corLetra:'black', nome: 'Linen', hexadecimal: '#FAF0E6', RGB: '(250,240,230)' },130 {id:'134',corLetra:'black', nome: 'Cornsilk', hexadecimal: '#FFF8DC', RGB: '(255,248,220)' },131 {id:'135',corLetra:'black', nome: 'AntiqueWhite', hexadecimal: '#FAEBD7', RGB: '(250,235,215)' },132 {id:'136',corLetra:'black', nome: 'BlanchedAlmond', hexadecimal: '#FFEBCD', RGB: '(255,235,205)' },133 {id:'137',corLetra:'black', nome: 'Bisque', hexadecimal: '#FFE4C4', RGB: '(255,228,196)' },134 {id:'138',corLetra:'black', nome: 'LightYellow', hexadecimal: '#FFFFE0', RGB: '(255,255,224)' },135 {id:'139',corLetra:'black', nome: 'LemonChiffon', hexadecimal: '#FFFACD', RGB: '(255,250,205)' },136 {id:'140',corLetra:'black', nome: 'LightGoldenrodYellow', hexadecimal: '#FAFAD2', RGB: '(250,250,210)' },137 {id:'141',corLetra:'black', nome: 'PapayaWhip', hexadecimal: '#FFEFD5', RGB: '(255,239,213)' },138 {id:'142',corLetra:'black', nome: 'PeachPuff', hexadecimal: '#FFDAB9', RGB: '(255,218,185)' },139 {id:'143',corLetra:'black', nome: 'Moccasin', hexadecimal: '#FFE4B5', RGB: '(255,228,181)' },140 {id:'144',corLetra:'black', nome: 'PaleGoldenrod', hexadecimal: '#EEE8AA', RGB: '(238,232,170)' },141 {id:'145',corLetra:'black', nome: 'MistyRose', hexadecimal: '#FFE4E1', RGB: '(255,228,225)' },142 {id:'146',corLetra:'black', nome: 'LavenderBlush', hexadecimal: '#FFF0F5', RGB: '(255,240,245)' },143 {id:'147',corLetra:'black', nome: 'Lavender', hexadecimal: '#E6E6FA', RGB: '(230,230,250)' },144 {id:'148',corLetra:'black', nome: 'Thistle', hexadecimal: '#D8BFD8', RGB: '(216,191,216)' },145 {id:'149',corLetra:'black', nome: 'Azure', hexadecimal: '#F0FFFF', RGB: '(240,255,255)' },146 {id:'150',corLetra:'black', nome: 'LightCyan', hexadecimal: '#E0FFFF', RGB: '(224,255,255)' },147 {id:'151',corLetra:'black', nome: 'PowderBlue', hexadecimal: '#B0E0E6', RGB: '(176,224,230)' },148 {id:'152',corLetra:'black', nome: 'PaleTurquoise', hexadecimal: '#E0FFFF', RGB: '(175,238,238)' },149 {id:'153',corLetra:'black', nome: 'Honeydew', hexadecimal: '#F0FFF0', RGB: '(240,255,240)' },150 {id:'154',corLetra:'black', nome: 'MintCream', hexadecimal: '#F5FFFA', RGB: '(245,255250)' },151 ]152 };153 }154 render(){155 return (156 <View style={styles.container}>157 <FlatList 158 data={this.state.cores}159 keyExtractor={(item) => item.id}160 renderItem={({item}) => <Pessoa data={item}/>}161 />162 </View>163 );164 }165}166const styles = StyleSheet.create({167 container:{168 flex:1,169 paddingTop:24,170 },171 areaPessoa:{172 flexDirection:'row',173 paddingTop:35,174 height:100,175 },176 textoPessoa:{177 color:'#000',178 fontSize:20,179 paddingLeft:24,180 alignItems:'center',181 fontWeight: 'bold',182 borderColor:'white'183 }184});185export default App;186class Pessoa extends Component {187 render(){188 return (189 <View style={[styles.areaPessoa, {backgroundColor:this.props.data.hexadecimal}]}>190 <Text style={[styles.textoPessoa, {color:this.props.data.corLetra}]}>{this.props.data.id}</Text>191 <Text style={[styles.textoPessoa, {color:this.props.data.corLetra}]}>{this.props.data.nome}</Text>192 <Text style={[styles.textoPessoa, {color:this.props.data.corLetra}]}>{this.props.data.hexadecimal}</Text>193 <Text style={[styles.textoPessoa, {color:this.props.data.corLetra}]}>{this.props.data.RGB}</Text>194 </View>195 );196 }197}...

Full Screen

Full Screen

script.js

Source:script.js Github

copy

Full Screen

1//alert('This is a mtm6302-exercise-1. ');2// Emoji Data 😃👾👨🏼‍💻3const EmojiData = [4 //Data of 100 Differenct Emoji and their corresponding Unicode5 { emoji: '😀', hexadecimal: '1F600' },6 { emoji: '😂', hexadecimal: '1F602' },7 { emoji: '😃', hexadecimal: '1F603' },8 { emoji: '😄', hexadecimal: '1F604' },9 { emoji: '😅', hexadecimal: '1F605' },10 { emoji: '😆', hexadecimal: '1F606' },11 { emoji: '😇', hexadecimal: '1F607' },12 { emoji: '😈', hexadecimal: '1F608' },13 { emoji: '😉', hexadecimal: '1F609' },14 { emoji: '😊', hexadecimal: '1F60A' },15 { emoji: '😋', hexadecimal: '1F60B' },16 { emoji: '😌', hexadecimal: '1F60C' },17 { emoji: '😍', hexadecimal: '1F60D' },18 { emoji: '😎', hexadecimal: '1F60E' },19 { emoji: '😏', hexadecimal: '1F60F' },20 { emoji: '😐', hexadecimal: '1F610' },21 { emoji: '😑', hexadecimal: '1F611' },22 { emoji: '😒', hexadecimal: '1F612' },23 { emoji: '😓', hexadecimal: '1F613' },24 { emoji: '😔', hexadecimal: '1F614' },25 { emoji: '😕', hexadecimal: '1F615' },26 { emoji: '😖', hexadecimal: '1F616' },27 { emoji: '😗', hexadecimal: '1F617' },28 { emoji: '😘', hexadecimal: '1F618' },29 { emoji: '😙', hexadecimal: '1F619' },30 { emoji: '😚', hexadecimal: '1F61A' },31 { emoji: '😛', hexadecimal: '1F61B' },32 { emoji: '😜', hexadecimal: '1F61C' },33 { emoji: '😝', hexadecimal: '1F61D' },34 { emoji: '😞', hexadecimal: '1F61E' },35 { emoji: '😟', hexadecimal: '1F61F' },36 { emoji: '😠', hexadecimal: '1F620' },37 { emoji: '😡', hexadecimal: '1F621' },38 { emoji: '😢', hexadecimal: '1F622' },39 { emoji: '😣', hexadecimal: '1F623' },40 { emoji: '😤', hexadecimal: '1F624' },41 { emoji: '😥', hexadecimal: '1F625' },42 { emoji: '😦', hexadecimal: '1F626' },43 { emoji: '😧', hexadecimal: '1F627' },44 { emoji: '😨', hexadecimal: '1F628' },45 { emoji: '😩', hexadecimal: '1F629' },46 { emoji: '😪', hexadecimal: '1F62A' },47 { emoji: '😫', hexadecimal: '1F62B' },48 { emoji: '😬', hexadecimal: '1F62C' },49 { emoji: '😭', hexadecimal: '1F62D' },50 { emoji: '😮', hexadecimal: '1F62E' },51 { emoji: '😯', hexadecimal: '1F62F' },52 { emoji: '😰', hexadecimal: '1F630' },53 { emoji: '😱', hexadecimal: '1F631' },54 { emoji: '😲', hexadecimal: '1F632' },55 { emoji: '😳', hexadecimal: '1F633' },56 { emoji: '😴', hexadecimal: '1F634' },57 { emoji: '😵', hexadecimal: '1F635' },58 { emoji: '😶', hexadecimal: '1F636' },59 { emoji: '😷', hexadecimal: '1F637' },60 { emoji: '😸', hexadecimal: '1F638' },61 { emoji: '😹', hexadecimal: '1F639' },62 { emoji: '😺', hexadecimal: '1F63A' },63 { emoji: '😻', hexadecimal: '1F63B' },64 { emoji: '😼', hexadecimal: '1F63C' },65 { emoji: '😽', hexadecimal: '1F63D' },66 { emoji: '😾', hexadecimal: '1F63E' },67 { emoji: '😿', hexadecimal: '1F63F' },68 { emoji: '🙀', hexadecimal: '1F640' },69 { emoji: '🙁', hexadecimal: '1F641' },70 { emoji: '🙂', hexadecimal: '1F642' },71 { emoji: '🙃', hexadecimal: '1F643' },72 { emoji: '🙄', hexadecimal: '1F644' },73 { emoji: '🙅', hexadecimal: '1F645' },74 { emoji: '🙆', hexadecimal: '1F646' },75 { emoji: '🙇', hexadecimal: '1F647' },76 { emoji: '🙈', hexadecimal: '1F648' },77 { emoji: '🙉', hexadecimal: '1F649' },78 { emoji: '🙊', hexadecimal: '1F64A' },79 { emoji: '🙋', hexadecimal: '1F64B' },80 { emoji: '🙌', hexadecimal: '1F64C' },81 { emoji: '🙍', hexadecimal: '1F64D' },82 { emoji: '🙎', hexadecimal: '1F64E' },83 { emoji: '🙏', hexadecimal: '1F64F' },84 { emoji: '🚀', hexadecimal: '1F680' },85 { emoji: '🚁', hexadecimal: '1F681' },86 { emoji: '🚂', hexadecimal: '1F682' },87 { emoji: '🚃', hexadecimal: '1F683' },88 { emoji: '🚄', hexadecimal: '1F684' },89 { emoji: '🚅', hexadecimal: '1F685' },90 { emoji: '🚆', hexadecimal: '1F686' },91 { emoji: '🚇', hexadecimal: '1F687' },92 { emoji: '🚈', hexadecimal: '1F688' },93 { emoji: '🚉', hexadecimal: '1F689' },94 { emoji: '🚊', hexadecimal: '1F68A' },95 { emoji: '🚋', hexadecimal: '1F68B' },96 { emoji: '🚌', hexadecimal: '1F68C' },97 { emoji: '🚍', hexadecimal: '1F68D' },98 { emoji: '🚎', hexadecimal: '1F68E' },99 { emoji: '🚏', hexadecimal: '1F68F' },100 { emoji: '🚐', hexadecimal: '1F690' },101 { emoji: '🚑', hexadecimal: '1F691' },102 { emoji: '🚒', hexadecimal: '1F692' },103 { emoji: '🚓', hexadecimal: '1F693' },104 { emoji: '🚔', hexadecimal: '1F694' },105 { emoji: '🚕', hexadecimal: '1F695' },106 { emoji: '🚖', hexadecimal: '1F696' },107 { emoji: '🚗', hexadecimal: '1F697' },108 { emoji: '🚘', hexadecimal: '1F698' },109 { emoji: '🚙', hexadecimal: '1F699' },110 { emoji: '🚚', hexadecimal: '1F69A' },111 { emoji: '🚛', hexadecimal: '1F69B' },112 { emoji: '🚜', hexadecimal: '1F69C' },113 { emoji: '🚝', hexadecimal: '1F69D' },114 { emoji: '🚞', hexadecimal: '1F69E' },115 { emoji: '🚟', hexadecimal: '1F69F' },116 { emoji: '🚠', hexadecimal: '1F6A0' },117 { emoji: '🚡', hexadecimal: '1F6A1' },118];119const $list = document.getElementById('list');120for (let i = 0; i < EmojiData.length; i++) {121 $list.innerHTML += `<p>122 <span style="font-size: 5rem">${EmojiData[i].emoji}</span><br />123 <code>${EmojiData[i].hexadecimal}</code>124</p>`125}...

Full Screen

Full Screen

isColor.test.ts

Source:isColor.test.ts Github

copy

Full Screen

1import hexadecimalColor from "../src"2describe("hexadecimalColor.isColor", () => {3 test("0", () => {4 let result: any = hexadecimalColor.isColor("ccc")5 expect(result).toBe(true)6 })7 test("1", () => {8 let result: any = hexadecimalColor.isColor("#ccc")9 expect(result).toBe(true)10 })11 test("2", () => {12 let result: any = hexadecimalColor.isColor("#cccccc")13 expect(result).toBe(true)14 })15 test("3", () => {16 let result: any = hexadecimalColor.isColor("#AaBbCc")17 expect(result).toBe(true)18 })19 test("4", () => {20 let result: any = hexadecimalColor.isColor("#abc")21 expect(result).toBe(true)22 })23 test("5", () => {24 let result: any = hexadecimalColor.isColor("#aabb")25 expect(result).toBe(false)26 })27 test("6", () => {28 let result: any = hexadecimalColor.isColor("#")29 expect(result).toBe(false)30 })31 test("7", () => {32 let result: any = hexadecimalColor.isColor("#12zr4c")33 expect(result).toBe(false)34 })35 test("8", () => {36 let result: any = hexadecimalColor.isColor("##cccccc")37 expect(result).toBe(false)38 })39 test("9", () => {40 let result: any = hexadecimalColor.isColor("something")41 expect(result).toBe(false)42 })43 test("10", () => {44 let result: any = hexadecimalColor.isColor("fff")45 expect(result).toBe(true)46 })47 test("11", () => {48 let result: any = hexadecimalColor.isColor("#fff")49 expect(result).toBe(true)50 })51 test("12", () => {52 let result: any = hexadecimalColor.isColor("#ffffff")53 expect(result).toBe(true)54 })55 test("13", () => {56 let result: any = hexadecimalColor.isColor("000")57 expect(result).toBe(true)58 })59 test("14", () => {60 let result: any = hexadecimalColor.isColor("#000")61 expect(result).toBe(true)62 })63 test("15", () => {64 let result: any = hexadecimalColor.isColor("#000000")65 expect(result).toBe(true)66 })...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const { Matchers } = require('@pact-foundation/pact')2const { somethingLike, like, term } = Matchers3const postBody = {4 id: like(1),5 name: like('John'),6 age: like(23),7 location: somethingLike({8 }),9 email: term({10 matcher: '^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}$',

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run pact-foundation-pact automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful