Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.
Use npm to install Mocha:
npm install mocha| <?php echo get_post_meta($post->ID, 'year', true); ?> |
| <?php if ( have_posts() ) : query_posts('p=1'); | |
| while (have_posts()) : the_post(); ?> | |
| <?php the_title(); ?> | |
| <?php the_content(); ?> | |
| <?php the_post_thumbnail(array(100, 100)); ?> | |
| <?php endwhile; endif; wp_reset_query(); ?> |
| <?php | |
| $idObj = get_category_by_slug('s_about'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($id); | |
| ?> |
| // ---- | |
| // Sass (v3.4.12) | |
| // Compass (v1.0.3) | |
| // ---- | |
| $baseSize: 16px; | |
| $convertBase: $baseSize; | |
| html { | |
| font-size: percentage($baseSize / 16px); |
| //Easy Form Validator | |
| //Example: $("form").evalid("Error message"); | |
| //Author URL: http://webdesign-master.ru | |
| (function($) { | |
| $.fn.evalid = function(req_text) { | |
| $(this).find("input[type], textarea").each(function() { | |
| $(this).after("<p class='form_error_message'>" + req_text + "").next().hide(); | |
| }); |
| <!-- Google Map API --> | |
| <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOU-API-KEY&sensor=false"></script> |
| $("img").on("dragstart", function(event) { event.preventDefault(); }); |
| <?php $url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large' ); $url = $url['0']; ?> |
Mocha is a unittest framework for Node. In this document, we explain how you can test your javascript code and also your HTTP servers.
Use npm to install Mocha:
npm install mocha